VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Language.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Language.c')
-rw-r--r--src/Common/Language.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Common/Language.c b/src/Common/Language.c
index f03a4e54..cb0178d9 100644
--- a/src/Common/Language.c
+++ b/src/Common/Language.c
@@ -361,9 +361,11 @@ BOOL LoadLanguageFile ()
header = headerPtr;
if (header == NULL) return FALSE;
+ header--;
do
{
+ header++;
if (sscanf (header, "#define %127s %d", key, &intKey) == 2)
{
WCHAR *str = GetString (key);
@@ -372,7 +374,7 @@ BOOL LoadLanguageFile ()
AddDictionaryEntry (NULL, intKey, str);
}
- } while ((header = strchr (header, '\n') + 1) != (char *) 1);
+ } while ((header = strchr (header, '\n')) != NULL);
free (headerPtr);
}