diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2012-08-17 18:32:56 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2013-02-24 17:58:34 +0100 |
| commit | 1711be955b54b9d12431b341ea290bad406023cc (patch) | |
| tree | 3f667dab7e2ef59aa622035b5d95f4a00ab9b57a /src/game/server/gamecontroller.cpp | |
| parent | 98042012a6c6e639c9736b32518dd082ca539615 (diff) | |
| download | zcatch-1711be955b54b9d12431b341ea290bad406023cc.tar.gz zcatch-1711be955b54b9d12431b341ea290bad406023cc.zip | |
fixed all the errors that the clang static analayzer found
Diffstat (limited to 'src/game/server/gamecontroller.cpp')
| -rw-r--r-- | src/game/server/gamecontroller.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/server/gamecontroller.cpp b/src/game/server/gamecontroller.cpp index 7001ca32..0ee250e8 100644 --- a/src/game/server/gamecontroller.cpp +++ b/src/game/server/gamecontroller.cpp @@ -281,8 +281,8 @@ void IGameController::CycleMap() pNextMap = pMapRotation; // cut out the next map - char aBuf[512]; - for(int i = 0; i < 512; i++) + char aBuf[512] = {0}; + for(int i = 0; i < 511; i++) { aBuf[i] = pNextMap[i]; if(IsSeparator(pNextMap[i]) || pNextMap[i] == 0) |