about summary refs log tree commit diff
path: root/src/engine/e_map.c
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/engine/e_map.c
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/engine/e_map.c')
-rw-r--r--src/engine/e_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/e_map.c b/src/engine/e_map.c
index 9f7a910e..c689be45 100644
--- a/src/engine/e_map.c
+++ b/src/engine/e_map.c
@@ -53,7 +53,7 @@ int map_is_loaded()
 int map_load(const char *mapname)
 {
 	char buf[512];
-	sprintf(buf, "data/maps/%s.map", mapname);
+	str_format(buf, sizeof(buf), "data/maps/%s.map", mapname);
 	map = datafile_load(buf);
 	return map != 0;
 }