Source and destination should not overlap in call to strcpy(), use memmove().

This commit is contained in:
Ben Noordhuis 2010-11-12 23:24:42 +01:00 committed by Garux
parent 2cba675936
commit c897b97e01

View File

@ -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] == '\"')
{