From 6ed38c96b4c72656bf37478f05762a63b7b77fcb Mon Sep 17 00:00:00 2001 From: pvalchev Date: Thu, 28 Nov 2002 23:31:19 +0000 Subject: [PATCH] varargs parameters get promoted to int if char --- .../pgp5/patches/patch-lib_pgp_helper_pgpDebug_c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 security/pgp5/patches/patch-lib_pgp_helper_pgpDebug_c diff --git a/security/pgp5/patches/patch-lib_pgp_helper_pgpDebug_c b/security/pgp5/patches/patch-lib_pgp_helper_pgpDebug_c new file mode 100644 index 00000000000..db4e8e8883a --- /dev/null +++ b/security/pgp5/patches/patch-lib_pgp_helper_pgpDebug_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-lib_pgp_helper_pgpDebug_c,v 1.1 2002/11/28 23:31:19 pvalchev Exp $ +--- lib/pgp/helper/pgpDebug.c.orig Thu Nov 28 15:37:22 2002 ++++ lib/pgp/helper/pgpDebug.c Thu Nov 28 15:37:41 2002 +@@ -191,7 +191,7 @@ pgpFormatVAStr( + + case 'c': /* Single character */ + { +- char ch = va_arg(args, char); ++ char ch = va_arg(args, int); + + AppendChars(buffer, &bufferIndex, bufferSize, + canonicalizeNLs, &ch, 1);