projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e6482b
)
fix signedness
author
root
<devnull@localhost>
Thu, 20 Jun 1996 02:19:00 +0000
(
02:19
+0000)
committer
root
<devnull@localhost>
Thu, 20 Jun 1996 02:19:00 +0000
(
02:19
+0000)
CVS patchset: 654
CVS date: 1996/06/20 02:19:00
tools/rpmsignature.c
patch
|
blob
|
history
diff --git
a/tools/rpmsignature.c
b/tools/rpmsignature.c
index
1a894c2
..
7a8edb0
100644
(file)
--- a/
tools/rpmsignature.c
+++ b/
tools/rpmsignature.c
@@
-9,9
+9,9
@@
int main(int argc, char **argv)
{
- int fd;
+ int fd
, length
;
struct rpmlead lead;
- char *sig;
+
unsigned
char *sig;
if (argc == 1) {
fd = 0;
@@
-32,6
+32,8
@@
int main(int argc, char **argv)
write(1, sig, 16);
break;
case RPMSIG_MD5_PGP:
+ length = sig[16] * 256 + sig[17];
+ write(1, sig, 18 + length);
break;
default:
fprintf(stderr, "Unknown signature type: %d\n", lead.signature_type);