diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-01-02 13:55:16 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-01-02 13:55:16 +0200 |
commit | 519eaaf236866602e1f05cf138ebb263b465f2b7 (patch) | |
tree | 4a0b77ccbed218758ca74c3b038a34c10d768e11 /lib/package.c | |
parent | d772111b9131a9fc7ad4da1008ba6fb202344a2f (diff) | |
download | rpm-519eaaf236866602e1f05cf138ebb263b465f2b7.tar.gz rpm-519eaaf236866602e1f05cf138ebb263b465f2b7.tar.bz2 rpm-519eaaf236866602e1f05cf138ebb263b465f2b7.zip |
Assorted int -> size_t corrections for string lengths
Diffstat (limited to 'lib/package.c')
-rw-r--r-- | lib/package.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/package.c b/lib/package.c index 0db650c54..8fd94f62a 100644 --- a/lib/package.c +++ b/lib/package.c @@ -601,7 +601,7 @@ rpmRC rpmReadHeader(rpmts ts, FD_t fd, Header *hdrp, char ** msg) int32_t dl; int32_t * ei = NULL; size_t uc; - int32_t nb; + size_t nb; Header h = NULL; rpmRC rc = RPMRC_FAIL; /* assume failure */ int xx; @@ -644,7 +644,7 @@ rpmRC rpmReadHeader(rpmts ts, FD_t fd, Header *hdrp, char ** msg) ei[1] = block[3]; if ((xx = timedRead(fd, (char *)&ei[2], nb)) != nb) { (void) snprintf(buf, sizeof(buf), - _("hdr blob(%d): BAD, read returned %d\n"), nb, xx); + _("hdr blob(%zd): BAD, read returned %d\n"), nb, xx); goto exit; } |