Skip to content

Commit

Permalink
Fixed bug in CCommand constructor that could append junk to the cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
TotallyMehis committed Jun 22, 2020
1 parent b80ffde commit b7788fc
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 b7788fc

Please sign in to comment.