]> git.pld-linux.org Git - packages/ctags.git/blame - ctags-5.8-memmove.patch
- rel 5; add fixes and improvements from FC
[packages/ctags.git] / ctags-5.8-memmove.patch
CommitLineData
f5823ca3
AM
1diff -r -u ctags-5.8.orig/routines.c ctags-5.8/routines.c
2--- ctags-5.8.orig/routines.c 2013-06-13 10:42:08.048576327 -0400
3+++ ctags-5.8/routines.c 2013-06-13 10:48:25.150366836 -0400
4@@ -757,13 +757,13 @@
5 else if (cp [0] != PATH_SEPARATOR)
6 cp = slashp;
7 #endif
8- strcpy (cp, slashp + 3);
9+ memmove (cp, slashp + 3, strlen(slashp + 3) + 1);
10 slashp = cp;
11 continue;
12 }
13 else if (slashp [2] == PATH_SEPARATOR || slashp [2] == '\0')
14 {
15- strcpy (slashp, slashp + 2);
16+ memmove (slashp, slashp + 2, strlen(slashp + 2) + 1);
17 continue;
18 }
19 }
This page took 0.021659 seconds and 4 git commands to generate.