summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings.c b/strings.c
index 5804d9319..fab1628b5 100644
--- a/strings.c
+++ b/strings.c
@@ -1250,7 +1250,7 @@ void InitializeLanguagePacks(void)
dl->ent[m].name = strdup(hdr.name);
if (strcmp(hdr.name, "English") == 0) fallback = m;
- if (strcmp(hdr.isocode, lang) == 0) def = m;
+ if (strncmp(hdr.isocode, lang, 2) == 0) def = m;
m++;
}