summaryrefslogtreecommitdiff
path: root/src/win32.cpp
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-07-27 22:32:48 +0000
committerKUDr <kudr@openttd.org>2007-07-27 22:32:48 +0000
commit51b26f96d2bef9038cbac44d0f9ce528a7942d05 (patch)
tree31e755b83e38df557a250ad865219396d4b8da85 /src/win32.cpp
parentf9411f30c4e955968e7abdecade3303b5e63bb4c (diff)
downloadopenttd-51b26f96d2bef9038cbac44d0f9ce528a7942d05.tar.xz
(svn r10712) -Fix (r10711): \0 at the end of string constant (glx)
Diffstat (limited to 'src/win32.cpp')
-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;
}