summaryrefslogtreecommitdiffstats
path: root/src/rccstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rccstring.c')
-rw-r--r--src/rccstring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rccstring.c b/src/rccstring.c
index 34fc831..eee2ac2 100644
--- a/src/rccstring.c
+++ b/src/rccstring.c
@@ -64,7 +64,7 @@ int rccStringFixID(rcc_string string, rcc_context ctx) {
header = (rcc_string_header*)string;
- memcpy(lang, header->language, 2); lang[3] = 0;
+ memcpy(lang, header->language, 2); lang[2] = 0;
curlang = rccGetLanguageName(ctx, header->language_id);
if ((curlang)&&(!strcasecmp(lang, curlang))) return 0;