summaryrefslogtreecommitdiff
path: root/lib/signature.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-07-03 14:01:49 +0000
committerjbj <devnull@localhost>2002-07-03 14:01:49 +0000
commitaf3c677f06687e5ad1e33eb24f984c7ac5ff2a33 (patch)
tree9f18227a31e49ecccafa3852610d3346594dad69 /lib/signature.c
parente5fb770e7d9aac53a513965c0f2bcf360934794b (diff)
downloadlibrpm-tizen-af3c677f06687e5ad1e33eb24f984c7ac5ff2a33.tar.gz
librpm-tizen-af3c677f06687e5ad1e33eb24f984c7ac5ff2a33.tar.bz2
librpm-tizen-af3c677f06687e5ad1e33eb24f984c7ac5ff2a33.zip
- use rpmfi in showQueryPackage(), eliminating headerGetEntry().
CVS patchset: 5538 CVS date: 2002/07/03 14:01:49
Diffstat (limited to 'lib/signature.c')
-rw-r--r--lib/signature.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/signature.c b/lib/signature.c
index 826595c19..ce20cd293 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -242,8 +242,10 @@ int rpmWriteSignature(FD_t fd, Header h)
sigSize = headerSizeof(h, HEADER_MAGIC_YES);
pad = (8 - (sigSize % 8)) % 8;
if (pad) {
+/*@-boundswrite@*/
if (Fwrite(buf, sizeof(buf[0]), pad, fd) != pad)
rc = 1;
+/*@=boundswrite@*/
}
rpmMessage(RPMMESS_DEBUG, _("Signature: size(%d)+pad(%d)\n"), sigSize, pad);
return rc;