Buffer overflow fix (#351)

* Buffer overflow fix
This commit is contained in:
Alexander B 2019-04-08 12:39:48 +03:00 committed by Dmitry Novikov
parent eed7b19798
commit 1722f883a1

View File

@ -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;
@ -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;