Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37531116
en ru br
ALT Linux repos
S:0.99.5-alt6
5.0: 0.10.7-alt0.M50.1
4.1: 0.8.17-alt1
4.0: 0.8.12-alt1

Other repositories
Upstream:0.8.15

Group :: Text tools
RPM: fbreader

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: fbreader-0.99.5-alt-gcc6.patch
Download


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;
 	}
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin