From b9261c3da2be577738ffad6269ab21608ec98256 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 16 Jan 2023 17:01:52 +0300 Subject: [PATCH] Fix directory name reading --- src/dictionary.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dictionary.cc b/src/dictionary.cc index 14d8604..af873e9 100644 --- a/src/dictionary.cc +++ b/src/dictionary.cc @@ -447,7 +447,7 @@ int dictionaryLoad(FILE* stream, Dictionary* dictionary, int a3) return -1; } - if (fgets(entry->key, keyLength, stream) == NULL) { + if (fgets(entry->key, keyLength + 1, stream) == NULL) { return -1; }