From 619f3994bc7bd730aa28b0e511445025365d6146 Mon Sep 17 00:00:00 2001 From: DracoRPG Date: Tue, 13 Mar 2007 21:22:29 +0000 Subject: Fixed a warning git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10004 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/mapindex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/mapindex.c') diff --git a/src/common/mapindex.c b/src/common/mapindex.c index 439075b99..bfd67140a 100644 --- a/src/common/mapindex.c +++ b/src/common/mapindex.c @@ -43,7 +43,7 @@ int mapindex_addmap(int index, const char *name) } if ((ext = strstr(map_name, ".")) != NULL) { // Remove extension length = ext-map_name; - sprintf(ext, "\0"); + *ext = '\0'; } if (indexes[index].length) -- cgit v1.2.3-70-g09d2