summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/win32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32.cpp b/src/win32.cpp
index 0580087ca..5bbc05524 100644
--- a/src/win32.cpp
+++ b/src/win32.cpp
@@ -1276,6 +1276,6 @@ const char *GetCurrentLocale(const char *)
return NULL;
}
/* Format it as 'en_us'. */
- sprintf(retbuf, "%c%c_%c%c\0", lang[0], lang[1], country[0], country[1]);
+ sprintf(retbuf, "%c%c_%c%c", lang[0], lang[1], country[0], country[1]);
return retbuf;
}