mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Fix gcc build errors & warnings
This commit is contained in:
@@ -199,7 +199,7 @@ void CLogicExternalData::InputWriteKeyValue( inputdata_t &inputdata )
|
||||
|
||||
// Separate key from value
|
||||
char *delimiter = Q_strstr(szValue, " ");
|
||||
if (delimiter && (delimiter + 1) != '\0')
|
||||
if (delimiter && delimiter[1] != '\0')
|
||||
{
|
||||
Q_strncpy(key, szValue, MIN((delimiter - szValue) + 1, sizeof(key)));
|
||||
Q_strncpy(value, delimiter + 1, sizeof(value));
|
||||
|
||||
Reference in New Issue
Block a user