Permalink
Browse files

Fix buffer overflow

  • Loading branch information...
1 parent 6f28712 commit d6e53bc5726c4c0ac57a0bf9ebde0b9cd3db8718 @kayahr committed Aug 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/unpacktiles/unpacktiles.c
View
2 src/unpacktiles/unpacktiles.c
@@ -218,7 +218,7 @@ static void writeTilesets(char *outputDir, wlTilesets tilesets)
int i;
char *oldDir;
char filename[5];
- char format[4];
+ char format[5];
oldDir = getcwd(NULL, 0);
if (chdir(outputDir))

0 comments on commit d6e53bc

Please sign in to comment.