Skip to content

Commit

Permalink
fix(Tier1): Fixed bug in CCommand constructor that could append junk …
Browse files Browse the repository at this point in the history
…to the command string

See ValveSoftware#434
  • Loading branch information
FriskTheFallenHuman committed Nov 30, 2022
1 parent 2769eed commit 60b0b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp/src/tier1/convar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ CCommand::CCommand( int nArgC, const char **ppArgV )
{
*pSBuf++ = '\"';
}
memcpy( pSBuf, ppArgV[i], nLen );
memcpy( pSBuf, ppArgV[i], nLen+1 );
pSBuf += nLen;
if ( bContainsSpace )
{
Expand Down

0 comments on commit 60b0b18

Please sign in to comment.