summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMike Frysinger2007-03-17 06:29:05 +0000
committerMike Frysinger2007-03-17 06:29:05 +0000
commit7a96504d30e0bcafb5e014555c741fea6513172a (patch)
tree5a4f44d9eb2de6649b4e8798e890ec86bfa386fd /scripts
parent75acbe322c7b03e742120be2fcc20fe8a7ef0f7b (diff)
downloadbusybox-7a96504d30e0bcafb5e014555c741fea6513172a.zip
busybox-7a96504d30e0bcafb5e014555c741fea6513172a.tar.gz
dont use obsolete function index() as pointed out by src.obsolete.funcs
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/lxdialog/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/lxdialog/util.c b/scripts/kconfig/lxdialog/util.c
index f82cebb..072d3ee 100644
--- a/scripts/kconfig/lxdialog/util.c
+++ b/scripts/kconfig/lxdialog/util.c
@@ -224,7 +224,7 @@ void 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;
@@ -236,7 +236,7 @@ void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x)
if (wlen > room ||
(newl && wlen < 4 && sp
&& wlen + 1 + strlen(sp) > room
- && (!(sp2 = index(sp, ' '))
+ && (!(sp2 = strchr(sp, ' '))
|| wlen + 1 + (sp2 - sp) > room))) {
cur_y++;
cur_x = x;