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:
Kawe Mazidjatari 2023-04-09 23:35:58 +02:00
parent 3dd4054838
commit 7aa07083ca

View File

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