diff options
Diffstat (limited to 'src/tool/mapcache.c')
-rw-r--r-- | src/tool/mapcache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool/mapcache.c b/src/tool/mapcache.c index 133cfe0ed..4103e6916 100644 --- a/src/tool/mapcache.c +++ b/src/tool/mapcache.c @@ -310,6 +310,7 @@ int main(int argc, char *argv[]) if(strcmp("map:", name) == 0 && sscanf(line, "%*s %15s", name) < 1) continue; + name[MAP_NAME_LENGTH_EXT-1] = '\0'; remove_extension(name); printf("%s", name); if(find_map(name)) |