diff options
Diffstat (limited to 'app-doc/doxygen/files/doxygen-1.5.7.1-substitute.patch')
-rw-r--r-- | app-doc/doxygen/files/doxygen-1.5.7.1-substitute.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app-doc/doxygen/files/doxygen-1.5.7.1-substitute.patch b/app-doc/doxygen/files/doxygen-1.5.7.1-substitute.patch new file mode 100644 index 000000000000..7d87d4a880d2 --- /dev/null +++ b/app-doc/doxygen/files/doxygen-1.5.7.1-substitute.patch @@ -0,0 +1,24 @@ +--- doxygen-1.5.7.1-orig/src/util.cpp 2008-10-04 14:28:00.000000000 +0200 ++++ doxygen-1.5.7.1/src/util.cpp 2008-12-18 20:55:15.000000000 +0100 +@@ -4447,10 +4447,10 @@ + + QCString substitute(const char *s,const char *src,const char *dst) + { +- if (s==0 || src==0 || dst==0) return s; ++ if (s==0 || src==0) return s; + const char *p, *q; + int srcLen = strlen(src); +- int dstLen = strlen(dst); ++ int dstLen = dst ? strlen(dst) : 0; + int resLen; + if (srcLen!=dstLen) + { +@@ -4469,7 +4469,7 @@ + int l = (int)(q-p); + memcpy(r,p,l); + r+=l; +- memcpy(r,dst,dstLen); ++ if (dst) memcpy(r,dst,dstLen); + r+=dstLen; + } + strcpy(r,p); |