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; }