(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 ea965a4adf
commit b9eed21679
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)