projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75acbe3
)
dont use obsolete function index() as pointed out by src.obsolete.funcs
author
Mike Frysinger
<vapier@gentoo.org>
Sat, 17 Mar 2007 06:29:05 +0000
(06:29 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 17 Mar 2007 06:29:05 +0000
(06:29 -0000)
scripts/kconfig/lxdialog/util.c
patch
|
blob
|
history
diff --git
a/scripts/kconfig/lxdialog/util.c
b/scripts/kconfig/lxdialog/util.c
index f82cebb9ff06d718f758f24f5674a671c17a36e1..072d3eeccb817c19ee3c4e635cbd64c459abd0ec 100644
(file)
--- 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;