about summary refs log tree commit diff
path: root/src/game/client/gc_map_image.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-02-11 21:49:26 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-02-11 21:49:26 +0000
commit79dfdb3cd71a44ec3cd8e1dab15263837381cbbf (patch)
treefe7ce8c125d74f74ecaea895f679cfe251fac784 /src/game/client/gc_map_image.cpp
parent57b2da779f242da46ec2ac3f994cf536af7a03e4 (diff)
downloadzcatch-79dfdb3cd71a44ec3cd8e1dab15263837381cbbf.tar.gz
zcatch-79dfdb3cd71a44ec3cd8e1dab15263837381cbbf.zip
security audit: first batch of fixes. replaced sprintf, strcpy with more secure versions
Diffstat (limited to 'src/game/client/gc_map_image.cpp')
-rw-r--r--src/game/client/gc_map_image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/gc_map_image.cpp b/src/game/client/gc_map_image.cpp
index 174a412e..664a867a 100644
--- a/src/game/client/gc_map_image.cpp
+++ b/src/game/client/gc_map_image.cpp
@@ -110,7 +110,7 @@ int img_init()
 		{
 			char buf[256];
 			char *name = (char *)map_get_data(img->image_name);
-			sprintf(buf, "data/mapres/%s.png", name);
+			str_format(buf, sizeof(buf), "data/mapres/%s.png", name);
 			map_textures[i] = gfx_load_texture(buf, IMG_AUTO);
 		}
 		else