OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1007c68
)
fix from Kevin Day to make sure we use strchr() rather than index()
author
Mike Frysinger
<vapier@gentoo.org>
Sat, 15 Sep 2007 00:26:11 +0000
(
00:26
-0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 15 Sep 2007 00:26:11 +0000
(
00:26
-0000)
extra/config/lxdialog/util.c
patch
|
blob
|
history
diff --git
a/extra/config/lxdialog/util.c
b/extra/config/lxdialog/util.c
index
d54440f
..
a1a1354
100644
(file)
--- a/
extra/config/lxdialog/util.c
+++ b/
extra/config/lxdialog/util.c
@@
-336,7
+336,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;
@@
-348,7
+348,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;