(svn r7280) -Codechange: Replace some sprintf() functions with the safer snprintf() functions

This commit is contained in:
Darkvater
2006-11-28 20:55:16 +00:00
parent dcbbda0cb9
commit 7c945bf828
8 changed files with 21 additions and 20 deletions

View File

@@ -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)