diff options
| author | oy <Tom_Adams@web.de> | 2010-06-21 13:45:30 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-06-21 13:45:30 +0200 |
| commit | c40bc9af3e51c98afe68e03a45ba83651bfa0ad0 (patch) | |
| tree | 6dbbede2696a49649e2ff3bd23d24e7b5ad48053 /src/game | |
| parent | 3475d2ae1b66b1f254ac56a25170448aa19447b1 (diff) | |
| download | zcatch-c40bc9af3e51c98afe68e03a45ba83651bfa0ad0.tar.gz zcatch-c40bc9af3e51c98afe68e03a45ba83651bfa0ad0.zip | |
fixed a possible crash in the client console
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/client/components/console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index 433ff409..cb8c31ce 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -189,7 +189,7 @@ void CGameConsole::CInstance::OnInput(IInput::CEvent Event) char aBuf[64] = {0}; const char *pSrc = GetString(); int i = 0; - for(; i < (int)sizeof(aBuf) && *pSrc && *pSrc != ' ' && *pSrc != ' '; i++, pSrc++) + for(; i < (int)sizeof(aBuf)-1 && *pSrc && *pSrc != ' '; i++, pSrc++) aBuf[i] = *pSrc; aBuf[i] = 0; |