(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

@@ -457,7 +457,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MAP)
// First packet, init some stuff
if (maptype == MAP_PACKET_START) {
// The name for the temp-map
sprintf(filename, "%s%snetwork_client.tmp", _path.autosave_dir, PATHSEP);
snprintf(filename, lengthof(filename), "%s%snetwork_client.tmp", _path.autosave_dir, PATHSEP);
file_pointer = fopen(filename, "wb");
if (file_pointer == NULL) {