diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-03-02 15:23:53 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-03-02 15:23:53 -0330 |
commit | 8b15e6ba73a45b5be5064cb2f866ad0654d7af18 (patch) | |
tree | 9ee591d38fb7725ab2e6ef637b46b54d1394ef33 /cpp/src/IcePatch2/Util.cpp | |
parent | Fix 3755 - demo/Ice/callback has context parameter? (diff) | |
download | ice-8b15e6ba73a45b5be5064cb2f866ad0654d7af18.tar.bz2 ice-8b15e6ba73a45b5be5064cb2f866ad0654d7af18.tar.xz ice-8b15e6ba73a45b5be5064cb2f866ad0654d7af18.zip |
C++Builder 2009 port
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp index 07b5a355919..05d91aa9bec 100644 --- a/cpp/src/IcePatch2/Util.cpp +++ b/cpp/src/IcePatch2/Util.cpp @@ -736,7 +736,7 @@ IcePatch2::decompressFile(const string& pa) } ByteSeq compressedBytes(buf.st_size); - if(fread(&compressedBytes[0], buf.st_size, 1, stdioFileBZ2) == -1) + if(fread(&compressedBytes[0], buf.st_size, 1, stdioFileBZ2) != 1) { throw "cannot read from `" + pathBZ2 + "':\n" + IceUtilInternal::lastErrorToString(); } |