forked from enlightenment/efl
strcpy() doesn't allow copying overlapping strings
SVN revision: 8518
This commit is contained in:
parent
dadd638530
commit
b0431359c2
|
@ -237,11 +237,11 @@ next_token(char *p, char *end, char **new_p, int *delim)
|
|||
while (*p)
|
||||
{
|
||||
if (*p == '"')
|
||||
strcpy(p, p + 1);
|
||||
memmove(p, p + 1, strlen(p));
|
||||
else if ((*p == '\\') && (*(p + 1) == '"'))
|
||||
strcpy(p, p + 1);
|
||||
memmove(p, p + 1, strlen(p));
|
||||
else if ((*p == '\\') && (*(p + 1) == '\\'))
|
||||
strcpy(p, p + 1);
|
||||
memmove(p, p + 1, strlen(p));
|
||||
else
|
||||
p++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue