diff options
author | jbj <devnull@localhost> | 2001-04-17 18:30:23 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-04-17 18:30:23 +0000 |
commit | 63db1277013da1355d86ef5f3faf5dff26581c17 (patch) | |
tree | 221c1a7f3540178084b0bca8d8f07c22b04355b0 /build | |
parent | c360a8907b132495e411824c92dfe4189e76ac3d (diff) | |
download | librpm-tizen-63db1277013da1355d86ef5f3faf5dff26581c17.tar.gz librpm-tizen-63db1277013da1355d86ef5f3faf5dff26581c17.tar.bz2 librpm-tizen-63db1277013da1355d86ef5f3faf5dff26581c17.zip |
- fix: Fwrite's are optimized out by aggressive compiler(irix) (#34711).
CVS patchset: 4684
CVS date: 2001/04/17 18:30:23
Diffstat (limited to 'build')
-rw-r--r-- | build/pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/pack.c b/build/pack.c index e101f33a6..f6dd4aa72 100644 --- a/build/pack.c +++ b/build/pack.c @@ -540,7 +540,7 @@ int writeRPM(Header *hdrp, const char *fileName, int type, rc = RPMERR_READ; goto exit; } - if (Fwrite(buf, sizeof(buf[0]), count, fd) < 0) { + if (Fwrite(buf, sizeof(buf[0]), count, fd) != count) { rpmError(RPMERR_NOSPACE, _("Unable to write payload to %s: %s\n"), fileName, Fstrerror(fd)); rc = RPMERR_NOSPACE; |