varargs parameters get promoted to int if char

This commit is contained in:
pvalchev 2002-11-28 23:31:19 +00:00
parent e06c678308
commit 6ed38c96b4

View File

@ -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);