Skip to content

Commit

Permalink
Fix directory name reading
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbatalov committed Jan 16, 2023
1 parent ed7176b commit b9261c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dictionary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b9261c3

Please sign in to comment.