Source and destination should not overlap in call to strcpy(), use memmove().
This commit is contained in:
@@ -1057,7 +1057,7 @@ void StripDoubleQuotes(char *string)
|
||||
{
|
||||
if (*string == '\"')
|
||||
{
|
||||
strcpy(string, string+1);
|
||||
memmove(string, string+1, strlen(string));
|
||||
} //end if
|
||||
if (string[strlen(string)-1] == '\"')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user