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

@@ -1219,7 +1219,7 @@ static void add_cmd_block(char *cmdstr)
slashes++;
/* Odd number of preceding slashes - newline is escaped */
if (slashes & 1) {
strcpy(eol-1, eol);
overlapping_strcpy(eol - 1, eol);
eol = strchr(eol, '\n');
goto next;
}