13 lines
503 B
Text
13 lines
503 B
Text
|
Index: src/alias.c
|
||
|
--- src/alias.c.orig
|
||
|
+++ src/alias.c
|
||
|
@@ -158,7 +158,7 @@ logical do_aliasr(char *name, char *dirsuffix, unsign
|
||
|
if (dirsufflength > 0 && dirsufflength < (unsigned int)(e2 - name) &&
|
||
|
*(e2 - dirsufflength - 1) == '/' &&
|
||
|
STREQ(e2 - dirsufflength, dirsuffix)) {
|
||
|
- memcpy((void *)(e2 - dirsufflength), (void *)e2, (size_t)(e1 - e2) + 1);
|
||
|
+ memmove((void *)(e2 - dirsufflength), (void *)e2, (size_t)(e1 - e2) + 1);
|
||
|
if (e2 != e1)
|
||
|
e2 -= dirsufflength;
|
||
|
}
|