3 --- pppd/utils.c.orig 2004-11-04 11:02:26.000000000 +0100
11 #include <sys/param.h>
12 #include <sys/types.h>
13 @@ -76,6 +75,7 @@ struct buffer_info {
17 +#ifndef HAS_STRLFUNCS
19 * strlcpy - like strcpy/strncpy, doesn't overflow destination buffer,
20 * always leaves destination null-terminated (for len > 0).
21 @@ -113,6 +113,7 @@ strlcat(dest, src, len)
23 return dlen + strlcpy(dest + dlen, src, (len > dlen? len - dlen: 0));
29 @@ -197,7 +198,7 @@ vslprintf(buf, buflen, fmt, args)
30 width = va_arg(args, int);
33 - while (isdigit(c)) {
34 + while (isdigit((unsigned char)c)) {
35 width = width * 10 + c - '0';
38 @@ -209,7 +210,7 @@ vslprintf(buf, buflen, fmt, args)
42 - while (isdigit(c)) {
43 + while (isdigit((unsigned char)c)) {
44 prec = prec * 10 + c - '0';
47 @@ -287,19 +288,15 @@ vslprintf(buf, buflen, fmt, args)
48 (ip >> 16) & 0xff, (ip >> 8) & 0xff, ip & 0xff);
51 -#if 0 /* not used, and breaks on S/390, apparently */
55 f = va_arg(args, char *);
57 - n = vslprintf(buf, buflen + 1, f, va_arg(args, va_list));
59 - /* On the powerpc, a va_list is an array of 1 structure */
60 - n = vslprintf(buf, buflen + 1, f, va_arg(args, void *));
62 + vlist = va_arg(args, va_list);
63 + n = vslprintf(buf, buflen + 1, f, vlist);