summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)