From 79dfdb3cd71a44ec3cd8e1dab15263837381cbbf Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 11 Feb 2008 21:49:26 +0000 Subject: security audit: first batch of fixes. replaced sprintf, strcpy with more secure versions --- src/game/client/gc_map_image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/client/gc_map_image.cpp') 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 -- cgit 1.4.1