From: Nikos Mavrogiannopoulos Date: Mon, 2 Jun 2008 19:55:07 +0000 (+0300) Subject: safer use of KEYID_IMPORT(). X-Git-Tag: gnutls_2_3_12~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=539d804fd984657ebe0cadd774bb0d5c4304bbaf;p=thirdparty%2Fgnutls.git safer use of KEYID_IMPORT(). --- diff --git a/lib/openpgp/openpgp_int.h b/lib/openpgp/openpgp_int.h index 6175743718..42b176a3c6 100644 --- a/lib/openpgp/openpgp_int.h +++ b/lib/openpgp/openpgp_int.h @@ -10,9 +10,9 @@ #include #include -#define KEYID_IMPORT(dst, src) \ +#define KEYID_IMPORT(dst, src) { \ dst[0] = _gnutls_read_uint32( src); \ - dst[1] = _gnutls_read_uint32( src+4) + dst[1] = _gnutls_read_uint32( src+4); } /* Internal context to store the OpenPGP key. */ typedef struct gnutls_openpgp_crt_int