Blame emacs-23.1-memmove.patch
|
Karel Klíč |
1de5c1 |
diff -up emacs-23.1/lib-src/etags.c.memmove emacs-23.1/lib-src/etags.c
|
|
Karel Klíč |
1de5c1 |
--- emacs-23.1/lib-src/etags.c.memmove 2009-06-21 06:37:34.000000000 +0200
|
|
Karel Klíč |
1de5c1 |
+++ emacs-23.1/lib-src/etags.c 2009-12-08 17:55:41.442792036 +0100
|
|
Karel Klíč |
1de5c1 |
@@ -6695,13 +6695,13 @@ absolute_filename (file, dir)
|
|
Karel Klíč |
1de5c1 |
else if (cp[0] != '/')
|
|
Karel Klíč |
1de5c1 |
cp = slashp;
|
|
Karel Klíč |
1de5c1 |
#endif
|
|
Karel Klíč |
1de5c1 |
- strcpy (cp, slashp + 3);
|
|
Karel Klíč |
1de5c1 |
+ memmove (cp, slashp + 3, strlen(slashp + 2));
|
|
Karel Klíč |
1de5c1 |
slashp = cp;
|
|
Karel Klíč |
1de5c1 |
continue;
|
|
Karel Klíč |
1de5c1 |
}
|
|
Karel Klíč |
1de5c1 |
else if (slashp[2] == '/' || slashp[2] == '\0')
|
|
Karel Klíč |
1de5c1 |
{
|
|
Karel Klíč |
1de5c1 |
- strcpy (slashp, slashp + 2);
|
|
Karel Klíč |
1de5c1 |
+ memmove (slashp, slashp + 2, strlen(slashp + 1));
|
|
Karel Klíč |
1de5c1 |
continue;
|
|
Karel Klíč |
1de5c1 |
}
|
|
Karel Klíč |
1de5c1 |
}
|