Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37734369
en ru br
ALT Linux repositórios
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

Outros repositórios
Upstream:0.8.15

Group :: Ferramentas de texto
RPM: fbreader

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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;
 	}
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009