mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
CBitRead::ReadString: Improve readability
The intention of null-terminating the string is clearer when using '\0' instead of '0' or 'NULL'.
This commit is contained in:
parent
3dd4054838
commit
7aa07083ca
@ -181,7 +181,7 @@ bool CBitRead::ReadString(char* pStr, int maxLen, bool bLine, int* pOutNumChars)
|
||||
}
|
||||
|
||||
// Make sure it's null-terminated.
|
||||
pStr[iChar] = 0;
|
||||
pStr[iChar] = '\0';
|
||||
|
||||
if (pOutNumChars)
|
||||
*pOutNumChars = iChar;
|
||||
|
Loading…
x
Reference in New Issue
Block a user