Vararg parameters are promoted to int if char. ok pvalchev@
This commit is contained in:
parent
43c390b54f
commit
1143a16d40
12
devel/ElectricFence/patches/patch-print_c
Normal file
12
devel/ElectricFence/patches/patch-print_c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user