summaryrefslogtreecommitdiff
path: root/build/parsePreamble.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-11-10 22:09:49 +0000
committerjbj <devnull@localhost>1999-11-10 22:09:49 +0000
commite0b1d0be3607ef673555ca17078bfff6f854267e (patch)
tree828541f8c102a7b9adddc19b0cf623cdedc0fb44 /build/parsePreamble.c
parentaeab1e959d1fb383a0ff21924bff0edd01404fab (diff)
downloadlibrpm-tizen-e0b1d0be3607ef673555ca17078bfff6f854267e.tar.gz
librpm-tizen-e0b1d0be3607ef673555ca17078bfff6f854267e.tar.bz2
librpm-tizen-e0b1d0be3607ef673555ca17078bfff6f854267e.zip
Swap 2nd and 3rd arg to Fread/Fwrite to preserve read/write type return.
Use Fstrerror to retrieve fd->syserrno. Make ftpFileDoneNeeded per-fd rather than per-url. Make data fd unique rather than per-url. Use appropriate protocol commands for ufdio writing. CVS patchset: 3421 CVS date: 1999/11/10 22:09:49
Diffstat (limited to 'build/parsePreamble.c')
-rw-r--r--build/parsePreamble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
index e0063ff0f..5299deb6b 100644
--- a/build/parsePreamble.c
+++ b/build/parsePreamble.c
@@ -247,7 +247,7 @@ static int readIcon(Header h, const char *file)
fd = Fopen(fn, "r.fdio");
/* XXX Fstrerror */
/* XXX Ferror check */
- nb = Fread(icon, statbuf.st_size, 1, fd);
+ nb = Fread(icon, sizeof(char), statbuf.st_size, fd);
Fclose(fd);
if (nb != statbuf.st_size) {
rpmError(RPMERR_BADSPEC, _("Unable to read icon: %s"), fn);