source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

Fixed bug in CCommand constructor that could append junk to the comma…

Open TravisWehrman opened this issue 7 years ago • 1 comments

…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.

TravisWehrman avatar Sep 11 '17 00:09 TravisWehrman

…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.

SC1040-TS2 avatar Apr 19 '21 00:04 SC1040-TS2