Remove strip quoting and fix strncpy-overlap

This commit is contained in:
Brian Ashworth 2018-06-07 20:37:08 -04:00
parent 07bee8cffe
commit 212e4ef395
2 changed files with 1 additions and 2 deletions

View file

@ -660,7 +660,7 @@ char *do_var_replacement(char *str) {
// Unescape double $ and move on
if (find[1] == '$') {
size_t length = strlen(find + 1);
strncpy(find, find + 1, length);
memmove(find, find + 1, length);
find[length] = '\0';
++find;
continue;