Blame SOURCES/ctags-5.8-memmove.patch

b1280f
diff -r -u ctags-5.8.orig/routines.c ctags-5.8/routines.c
b1280f
--- ctags-5.8.orig/routines.c	2013-06-13 10:42:08.048576327 -0400
b1280f
+++ ctags-5.8/routines.c	2013-06-13 10:48:25.150366836 -0400
b1280f
@@ -757,13 +757,13 @@
b1280f
 				else if (cp [0] != PATH_SEPARATOR)
b1280f
 					cp = slashp;
b1280f
 #endif
b1280f
-				strcpy (cp, slashp + 3);
b1280f
+				memmove (cp, slashp + 3, strlen(slashp + 3) + 1);
b1280f
 				slashp = cp;
b1280f
 				continue;
b1280f
 			}
b1280f
 			else if (slashp [2] == PATH_SEPARATOR  ||  slashp [2] == '\0')
b1280f
 			{
b1280f
-				strcpy (slashp, slashp + 2);
b1280f
+				memmove (slashp, slashp + 2, strlen(slashp + 2) + 1);
b1280f
 				continue;
b1280f
 			}
b1280f
 		}