fix all cases of strcpy on overlapping strings.

This commit is contained in:
Denis Vlasenko
2008-07-22 20:16:55 +00:00
parent 68a192c007
commit 0f293b96dc
7 changed files with 15 additions and 5 deletions

View File

@@ -800,7 +800,7 @@ int nmeter_main(int argc, char **argv)
if (!cur)
break;
if (cur[1] == '%') { // %%
strcpy(cur, cur+1);
overlapping_strcpy(cur, cur + 1);
cur++;
goto again;
}