summaryrefslogtreecommitdiff
path: root/package/util-linux/patches/patch-text-utils_display_c
blob: f1b17a774435d872fc46ac4490eeef40953fdc51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- util-linux-2.12r.orig/text-utils/display.c	2002-03-09 00:05:39.000000000 +0100
+++ util-linux-2.12r/text-utils/display.c	2008-10-16 12:52:48.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) ;
 }