aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-04-16 05:54:31 +0000
committerMike Frysinger <vapier@gentoo.org>2006-04-16 05:54:31 +0000
commit0436b9f482ec690c35488e8d5fc92a7100e0b21e (patch)
tree25d75b497ecaf89f7d996a5e1f0bca7bad0dfdcb /scripts
parent78bd504947637b39c5f80134c553602b7dccf281 (diff)
downloadbusybox-0436b9f482ec690c35488e8d5fc92a7100e0b21e.tar.gz
use strchr() not index()
Diffstat (limited to 'scripts')
-rw-r--r--scripts/config/lxdialog/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/config/lxdialog/util.c b/scripts/config/lxdialog/util.c
index 47afa5e6a..1e4b662c0 100644
--- a/scripts/config/lxdialog/util.c
+++ b/scripts/config/lxdialog/util.c
@@ -221,7 +221,7 @@ print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x)
newl = 1;
word = tempstr;
while (word && *word) {
- sp = index(word, ' ');
+ sp = strchr(word, ' ');
if (sp)
*sp++ = 0;
@@ -232,7 +232,7 @@ print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x)
wlen = strlen(word);
if (wlen > room ||
(newl && wlen < 4 && sp && wlen+1+strlen(sp) > room
- && (!(sp2 = index(sp, ' ')) || wlen+1+(sp2-sp) > room))) {
+ && (!(sp2 = strchr(sp, ' ')) || wlen+1+(sp2-sp) > room))) {
cur_y++;
cur_x = x;
}