Skip to content

Commit

Permalink
Buffer overflow fix (#351)
Browse files Browse the repository at this point in the history
* Buffer overflow fix
  • Loading branch information
2010kohtep authored and s1lentq committed Apr 8, 2019
1 parent eed7b19 commit 1722f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regamedll/dlls/util.cpp
Expand Up @@ -1248,7 +1248,7 @@ void UTIL_StringToVector(float *pVector, const char *pString)
char tempString[128];
int j;

Q_strcpy(tempString, pString);
Q_strlcpy(tempString, pString);

pstr = tempString;
pfront = tempString;
Expand Down Expand Up @@ -1315,7 +1315,7 @@ void UTIL_StringToIntArray(int *pVector, int count, const char *pString)
char tempString[128];
int j;

Q_strcpy(tempString, pString);
Q_strlcpy(tempString, pString);

pstr = tempString;
pfront = tempString;
Expand Down

0 comments on commit 1722f88

Please sign in to comment.