Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 251533
Collapse All | Expand All

(-)doxygen-1.5.7.1-orig/src/util.cpp (-3 / +3 lines)
Lines 4447-4456 Link Here
4447
4447
4448
QCString substitute(const char *s,const char *src,const char *dst)
4448
QCString substitute(const char *s,const char *src,const char *dst)
4449
{
4449
{
4450
  if (s==0 || src==0 || dst==0) return s;
4450
  if (s==0 || src==0) return s;
4451
  const char *p, *q;
4451
  const char *p, *q;
4452
  int srcLen = strlen(src);
4452
  int srcLen = strlen(src);
4453
  int dstLen = strlen(dst);
4453
  int dstLen = dst ? strlen(dst) : 0;
4454
  int resLen;
4454
  int resLen;
4455
  if (srcLen!=dstLen)
4455
  if (srcLen!=dstLen)
4456
  {
4456
  {
Lines 4469-4475 Link Here
4469
    int l = (int)(q-p);
4469
    int l = (int)(q-p);
4470
    memcpy(r,p,l);
4470
    memcpy(r,p,l);
4471
    r+=l;
4471
    r+=l;
4472
    memcpy(r,dst,dstLen);
4472
    if (dst) memcpy(r,dst,dstLen);
4473
    r+=dstLen;
4473
    r+=dstLen;
4474
  }
4474
  }
4475
  strcpy(r,p);
4475
  strcpy(r,p);

Return to bug 251533