blob: ecb8069ffbe322b565b093a6b0a3a6b5666b9dc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- util-linux-ng-2.15.orig/text-utils/display.c 2009-02-24 16:39:30.000000000 +0100
+++ util-linux-ng-2.15/text-utils/display.c 2009-06-22 22:56:12.000000000 +0200
@@ -163,7 +163,7 @@ static void bpad(PR *pr)
pr->cchar[0] = 's';
pr->cchar[1] = 0;
for (p1 = pr->fmt; *p1 != '%'; ++p1);
- for (p2 = ++p1; *p1 && index(spec, *p1); ++p1);
+ for (p2 = ++p1; *p1 && strchr(spec, *p1); ++p1);
while ((*p2++ = *p1++) != 0) ;
}
|