diff --git a/tagmanager/ctags/ctags.c b/tagmanager/ctags/ctags.c index 5a275137..4a4efcf9 100644 --- a/tagmanager/ctags/ctags.c +++ b/tagmanager/ctags/ctags.c @@ -739,13 +739,13 @@ static char* absoluteFilename (const char *file) else if (cp [0] != '/') cp = slashp; #endif - strcpy (cp, slashp + 3); + memmove (cp, slashp + 3, strlen (slashp + 3) + 1); slashp = cp; continue; } else if (slashp [2] == '/' || slashp [2] == '\0') { - strcpy (slashp, slashp + 2); + memmove (slashp, slashp + 2, strlen (slashp + 2) + 1); continue; } }