diff --git a/r5dev/tier1/bitbuf.cpp b/r5dev/tier1/bitbuf.cpp index 41ae6a91..23554cf9 100644 --- a/r5dev/tier1/bitbuf.cpp +++ b/r5dev/tier1/bitbuf.cpp @@ -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;