Skip to content

Commit

Permalink
Merge pull request #10822 from jackpoz/collisions_nullterm_string
Browse files Browse the repository at this point in the history
Tools/VMAP: Fix not null terminated string
  • Loading branch information
DDuarte committed Sep 15, 2013
2 parents 478ec28 + a513497 commit 0177d1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/collision/Maps/TileAssembler.cpp
Expand Up @@ -508,7 +508,8 @@ namespace VMAP
return false;
}

char ident[8];
char ident[9];
ident[8] = '\0';
int readOperation = 0;

READ_OR_RETURN(&ident, 8);
Expand Down

0 comments on commit 0177d1c

Please sign in to comment.