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 /gfxinit.c | |
parent | dcbbda0cb9674e8fc9aaa64a0861fd6381ae4202 (diff) | |
download | openttd-7c945bf8283d381ebf7982377b639f163f23a1ea.tar.xz |
(svn r7280) -Codechange: Replace some sprintf() functions with the safer snprintf() functions
Diffstat (limited to 'gfxinit.c')
-rw-r--r-- | gfxinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,7 +111,7 @@ static bool FileMD5(const MD5File file, bool warn) char buf[MAX_PATH]; // open file - sprintf(buf, "%s%s", _path.data_dir, file.filename); + snprintf(buf, lengthof(buf), "%s%s", _path.data_dir, file.filename); f = fopen(buf, "rb"); #if !defined(WIN32) |