1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-aa,v 1.3 2005/01/08 15:43:55 darcy Exp $
--- generate.c.orig 2005-01-04 08:15:47.000000000 -0500
+++ generate.c
@@ -364,7 +364,7 @@ replace_macro(const char *src, char *dst
char lenbuf[2048];
replace_macro(buf + 2, lenbuf, pre_param);
- sprintf(dst, "%d", strlen(lenbuf));
+ sprintf(dst, "%u", strlen(lenbuf));
continue;
}
@@ -828,7 +828,7 @@ get_input(FILE * in_fp, int if_flag)
continue;
p = pp;
- sprintf(cur_line_str, "%d", xline);
+ sprintf(cur_line_str, "%u", xline);
while (isspace((int) *p))
p++;
|