Репозитории ALT
S: | 0.99.5-alt6 |
5.1: | 0.10.7-alt1 |
4.1: | 0.8.17-alt1 |
4.0: | 0.8.12-alt1 |
Другие репозитории
Upstream: | 0.8.15 |
Группа :: Работа с текстами
Пакет: fbreader
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: fbreader-0.99.5-alt-gcc6.patch
Скачать
Скачать
diff --git a/fbreader/src/formats/doc/OleStorage.cpp b/fbreader/src/formats/doc/OleStorage.cpp
index 016f9fd..ee01a5b 100644
--- a/fbreader/src/formats/doc/OleStorage.cpp
+++ b/fbreader/src/formats/doc/OleStorage.cpp
@@ -59,8 +59,8 @@ bool OleStorage::init(shared_ptr<ZLInputStream> stream, std::size_t streamSize)
clear();
return false;
}
- static const char OLE_SIGN[] = {0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1, 0};
- if (std::strncmp(oleBuf, OLE_SIGN, 8) != 0) {
+ static const unsigned char OLE_SIGN[] = {0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1, 0};
+ if (std::strncmp(oleBuf, reinterpret_cast<const char*>(OLE_SIGN), 8) != 0) {
clear();
return false;
}