fix wrong strcpy usage (#4331, patch by Andreas Bierfert)

This commit is contained in:
Ludwig Nussel committed 2009-11-04 18:13:05 +00:00
1 parent 621f91783c
commit e8f5d5055d
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1118,7 +1118,7 @@ void StripDoubleQuotes(char *string)
{
if (*string == '\"')
{
strcpy(string, string+1);
memmove(string, string+1, strlen(string));
} //end if
if (string[strlen(string)-1] == '\"')
{
@@ -1135,7 +1135,7 @@ void StripSingleQuotes(char *string)
{
if (*string == '\'')
{
strcpy(string, string+1);
memmove(string, string+1, strlen(string));
} //end if
if (string[strlen(string)-1] == '\'')
{