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

@@ -161,7 +161,7 @@ int FAST_FUNC config_read(parser_t *parser, char **tokens, unsigned flags, const
int n = strspn(line, delims);
if (n) {
ii -= n;
strcpy(line, line + n);
overlapping_strcpy(line, line + n);
}
// cut trailing
if (ii) {