openbsd-ports/security/integrit/patches/patch-gnupg_md5_c
2004-01-28 22:16:12 +00:00

15 lines
708 B
Plaintext

$OpenBSD: patch-gnupg_md5_c,v 1.1 2004/01/28 22:16:12 naddy Exp $
--- gnupg/md5.c.orig 2004-01-28 22:57:29.000000000 +0100
+++ gnupg/md5.c 2004-01-28 22:57:45.000000000 +0100
@@ -330,8 +330,8 @@ void md5_final( MD5_CONTEXT *hd )
p = hd->buf;
#ifdef BIG_ENDIAN_HOST
- #define X(a) do { *p++ = hd->##a ; *p++ = hd->##a >> 8; \
- *p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0)
+ #define X(a) do { *p++ = hd->a ; *p++ = hd->a >> 8; \
+ *p++ = hd->a >> 16; *p++ = hd->a >> 24; } while(0)
#else /* little endian */
/*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/
/* Unixware's cpp doesn't like the above construct so we do it his way: