1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Remove warnings on VMS

This commit is contained in:
Werner Koch 2010-10-20 06:51:11 +00:00
parent 72ef16b939
commit 397f9cd6a1
5 changed files with 15 additions and 3 deletions

View file

@ -1842,7 +1842,7 @@ parse_key( IOBUF inp, int pkttype, unsigned long pktlen,
}
snlen = iobuf_get (inp);
pktlen--;
if (pktlen < snlen || snlen == -1) {
if (pktlen < snlen || snlen == (size_t)(-1)) {
rc = G10ERR_INVALID_PACKET;
goto leave;
}