fix wrong strcpy usage (#4331, patch by Andreas Bierfert)
This commit is contained in:
1 parent
621f91783c
commit
e8f5d5055d
2 files changed
+3
-3
No files matched your search
@@ -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] == '\'')
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user