Vararg parameters are promoted to int if char. ok pvalchev@

This commit is contained in:
drahn 2002-11-17 21:14:59 +00:00
parent 43c390b54f
commit 1143a16d40

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-print_c,v 1.1 2002/11/17 21:14:59 drahn Exp $
--- print.c.orig Tue Nov 12 09:45:58 2002
+++ print.c Tue Nov 12 09:02:04 2002
@@ -99,7 +99,7 @@ vprint(const char * pattern, va_list arg
break;
case 'c':
{
- char c = va_arg(args, char);
+ char c = va_arg(args, int);
(void) write(2, &c, 1);
}