1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* packet.h, build-packet.c (build_attribute_subpkt), exec.c (expand_args),

mkdtemp.c (mkdtemp), photoid.c (parse_image_header): Fix some signedness
compiler warnings.
This commit is contained in:
David Shaw 2002-07-01 16:40:52 +00:00
parent f7bf66d89d
commit b672df87d6
6 changed files with 17 additions and 10 deletions

View file

@ -872,8 +872,8 @@ build_sig_subpkt_from_sig( PKT_signature *sig )
void
build_attribute_subpkt(PKT_user_id *uid,byte type,
const void *buf,int buflen,
const void *header,int headerlen)
const void *buf,u32 buflen,
const void *header,u32 headerlen)
{
byte *attrib;
int idx;
@ -912,7 +912,8 @@ build_attribute_subpkt(PKT_user_id *uid,byte type,
/* Tack on our data at the end */
memcpy(&attrib[idx],header,headerlen);
if(headerlen>0)
memcpy(&attrib[idx],header,headerlen);
memcpy(&attrib[idx+headerlen],buf,buflen);
uid->attrib_len+=idx+headerlen+buflen;
}