mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-02-21 18:50:57 +00:00
fix wrong strcpy usage (#4331, patch by Andreas Bierfert)
This commit is contained in:
parent
621f91783c
commit
e8f5d5055d
2 changed files with 3 additions and 3 deletions
|
@ -948,7 +948,7 @@ void PC_ConvertPath(char *path)
|
||||||
if ((*ptr == '\\' || *ptr == '/') &&
|
if ((*ptr == '\\' || *ptr == '/') &&
|
||||||
(*(ptr+1) == '\\' || *(ptr+1) == '/'))
|
(*(ptr+1) == '\\' || *(ptr+1) == '/'))
|
||||||
{
|
{
|
||||||
strcpy(ptr, ptr+1);
|
memmove(ptr, ptr+1, strlen(ptr));
|
||||||
} //end if
|
} //end if
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1118,7 +1118,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] == '\"')
|
||||||
{
|
{
|
||||||
|
@ -1135,7 +1135,7 @@ void StripSingleQuotes(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 a new issue