summaryrefslogtreecommitdiff
path: root/src/common/mapindex.c
diff options
context:
space:
mode:
authorDracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-13 21:22:29 +0000
committerDracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-13 21:22:29 +0000
commit619f3994bc7bd730aa28b0e511445025365d6146 (patch)
tree522ab485ec23210b10a8e09af248fcf239507a35 /src/common/mapindex.c
parented39bb7197c749c28f1de75a4219329465b0fa08 (diff)
downloadhercules-619f3994bc7bd730aa28b0e511445025365d6146.tar.gz
hercules-619f3994bc7bd730aa28b0e511445025365d6146.tar.bz2
hercules-619f3994bc7bd730aa28b0e511445025365d6146.tar.xz
hercules-619f3994bc7bd730aa28b0e511445025365d6146.zip
Fixed a warning
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10004 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/mapindex.c')
-rw-r--r--src/common/mapindex.c2
1 files changed, 1 insertions, 1 deletions
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)