Mercurial > hg > xemacs-beta
diff lib-src/etags.c @ 4768:0f5bee973a7b
Etags: use memmove instead of strcpy to move characters within a string. See
<870180fe0912080852t1073137ence150b6d267c43c9@mail.gmail.com> in xemacs-patches.
author | Jerry James <james@xemacs.org> |
---|---|
date | Wed, 09 Dec 2009 09:50:36 -0700 |
parents | 9bab7e657255 |
children | 061f4f90f874 |
line wrap: on
line diff
--- a/lib-src/etags.c Sat Dec 05 01:04:17 2009 +0900 +++ b/lib-src/etags.c Wed Dec 09 09:50:36 2009 -0700 @@ -6829,13 +6829,13 @@ 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; } }