diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-28 20:55:16 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-28 20:55:16 +0000 |
commit | 7c945bf8283d381ebf7982377b639f163f23a1ea (patch) | |
tree | 5c4e14a6ee9c764ba23ada2a4c72dcc0ade951c2 /map.c | |
parent | dcbbda0cb9674e8fc9aaa64a0861fd6381ae4202 (diff) | |
download | openttd-7c945bf8283d381ebf7982377b639f163f23a1ea.tar.xz |
(svn r7280) -Codechange: Replace some sprintf() functions with the safer snprintf() functions
Diffstat (limited to 'map.c')
-rw-r--r-- | map.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ TileIndex TileAdd(TileIndex tile, TileIndexDiff add, if (x >= MapSizeX() || y >= MapSizeY()) { char buf[512]; - sprintf(buf, "TILE_ADD(%s) when adding 0x%.4X and 0x%.4X failed", + snprintf(buf, lengthof(buf), "TILE_ADD(%s) when adding 0x%.4X and 0x%.4X failed", exp, tile, add); #if !defined(_MSC_VER) fprintf(stderr, "%s:%d %s\n", file, line, buf); |