1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-ab,v 1.1 2004/06/16 16:09:39 minskim Exp $
--- send.c.orig 2002-07-11 10:58:54.000000000 -0500
+++ send.c
@@ -175,7 +175,7 @@ reschar:
sign = '\0';
src = buf;
eos = src + 1;
- *src = va_arg(ap, char);
+ *src = va_arg(ap, int);
goto writeout;
case 's':
src = va_arg(ap, char *);
@@ -211,7 +211,7 @@ reschar:
goto nosign;
nosign:
ulval = flags & flaglongint ? va_arg(ap, long)
- : flags & flagshortint ? (long)(short)va_arg(ap,short)
+ : flags & flagshortint ? (long)(short)va_arg(ap,int)
: (long)va_arg(ap,int) ;
goto number;
@@ -225,7 +225,7 @@ nosign:
case 'd':
case 'i':
ulval = flags & flaglongint ? va_arg(ap, long)
- : flags & flagshortint ? (long)(short)va_arg(ap,short)
+ : flags & flagshortint ? (long)(short)va_arg(ap,int)
: (long)va_arg(ap,int) ;
if((long)ulval < 0)
|