diff options
Diffstat (limited to 'src/modules/genbook/rawgenbook')
-rw-r--r-- | src/modules/genbook/rawgenbook/rawgenbook.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/genbook/rawgenbook/rawgenbook.cpp b/src/modules/genbook/rawgenbook/rawgenbook.cpp index e22532a..89367b5 100644 --- a/src/modules/genbook/rawgenbook/rawgenbook.cpp +++ b/src/modules/genbook/rawgenbook/rawgenbook.cpp @@ -112,7 +112,9 @@ char *RawGenBook::getRawEntry() { *entryBuf = 0; lseek(bdtfd->getFd(), offset, SEEK_SET); read(bdtfd->getFd(), entryBuf, size); + entryBuf[size] = 0; + rawFilter(entryBuf, size, 0); // hack, decipher rawFilter(entryBuf, size, key); if (!isUnicode()) |