1 2 3 4 5 6 7 8 9 10 11 12
diff -Naur bash-4.2-orig/general.c bash-4.2/general.c --- bash-4.2-orig/general.c 2010-12-13 06:06:27.000000000 +1000 +++ bash-4.2/general.c 2013-08-25 21:52:36.681484302 +1000 @@ -766,7 +766,7 @@ *nbeg++ = '.'; nlen = nend - ntail; - memcpy (nbeg, ntail, nlen); + memmove (nbeg, ntail, nlen); nbeg[nlen] = '\0'; return name;