summaryrefslogtreecommitdiff
path: root/rpm2cpio.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1997-08-21 01:20:16 +0000
committerewt <devnull@localhost>1997-08-21 01:20:16 +0000
commitb782a7d4aa0c7273ebade951d8292a5584a80114 (patch)
tree01276fda8bcc91a1ed7e40acd2660ead9eef53f6 /rpm2cpio.c
parenta50bad6f038dd3965a7702ebeda77de79ed74bbe (diff)
downloadlibrpm-tizen-b782a7d4aa0c7273ebade951d8292a5584a80114.tar.gz
librpm-tizen-b782a7d4aa0c7273ebade951d8292a5584a80114.tar.bz2
librpm-tizen-b782a7d4aa0c7273ebade951d8292a5584a80114.zip
1) rpm2cpio didn't handle zlib errors properly
2) query formats could yield (none)\n instead of just (none) 3) queries of fssizes w/o fsnames went bonkers CVS patchset: 1787 CVS date: 1997/08/21 01:20:16
Diffstat (limited to 'rpm2cpio.c')
-rw-r--r--rpm2cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm2cpio.c b/rpm2cpio.c
index a5ba3fef4..67b6c2295 100644
--- a/rpm2cpio.c
+++ b/rpm2cpio.c
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
gzclose(stream);
return 1;
}
- fprintf (stderr, "rpm2cpio: zlib: %s error\n", zlib_err [-zerror]);
+ fprintf (stderr, "rpm2cpio: zlib: %s error\n", zlib_err [-zerror - 1]);
}
gzclose(stream);