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