Fix directory name reading

This commit is contained in:
Alexander Batalov 2023-01-16 17:01:52 +03:00
parent ed7176b796
commit b9261c3da2

View File

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