summaryrefslogtreecommitdiff
path: root/src/common/mapindex.c
diff options
context:
space:
mode:
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 ca2ff4751..a1c86af97 100644
--- a/src/common/mapindex.c
+++ b/src/common/mapindex.c
@@ -47,7 +47,7 @@ const char* mapindex_getmapname(const char* string, char* output)
/// Result gets placed either into 'buf' or in a static local buffer.
const char* mapindex_getmapname_ext(const char* string, char* output)
{
- char buf[MAP_NAME_LENGTH_EXT];
+ static char buf[MAP_NAME_LENGTH_EXT];
char* dest = (output != NULL) ? output : buf;
size_t len;