source-sdk-2013
source-sdk-2013 copied to clipboard
Fixed bug in CCommand constructor that could append junk to the comma…
…nd string
- Missed copying the null terminator
- Since m_pArgSBuffer is not initialized this problem can occur when the (command string buffer length) + 1 char in m_pArgSBuffer array happens to be non-zero.
…nd string
- Missed copying the null terminator
- Since m_pArgSBuffer is not initialized this problem can occur when the (command string buffer length) + 1 char in m_pArgSBuffer array happens to be non-zero.
Necroposter here. This also seems to affect the SP/src/tier1/convar.cpp as well. A programmer should have been pinged for this.