diff options
| author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-16 05:54:31 +0000 |
|---|---|---|
| committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-16 05:54:31 +0000 |
| commit | aeadbf93fe6a1de2258e924e149cb336bcfe4c9d (patch) | |
| tree | 25d75b497ecaf89f7d996a5e1f0bca7bad0dfdcb /scripts | |
| parent | 5b3515d2d26294f70672efafc19abfe08487c216 (diff) | |
| download | busybox-w32-aeadbf93fe6a1de2258e924e149cb336bcfe4c9d.tar.gz busybox-w32-aeadbf93fe6a1de2258e924e149cb336bcfe4c9d.tar.bz2 busybox-w32-aeadbf93fe6a1de2258e924e149cb336bcfe4c9d.zip | |
use strchr() not index()
git-svn-id: svn://busybox.net/trunk/busybox@14885 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/config/lxdialog/util.c | 4 |
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) | |||
| 221 | newl = 1; | 221 | newl = 1; |
| 222 | word = tempstr; | 222 | word = tempstr; |
| 223 | while (word && *word) { | 223 | while (word && *word) { |
| 224 | sp = index(word, ' '); | 224 | sp = strchr(word, ' '); |
| 225 | if (sp) | 225 | if (sp) |
| 226 | *sp++ = 0; | 226 | *sp++ = 0; |
| 227 | 227 | ||
| @@ -232,7 +232,7 @@ print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x) | |||
| 232 | wlen = strlen(word); | 232 | wlen = strlen(word); |
| 233 | if (wlen > room || | 233 | if (wlen > room || |
| 234 | (newl && wlen < 4 && sp && wlen+1+strlen(sp) > room | 234 | (newl && wlen < 4 && sp && wlen+1+strlen(sp) > room |
| 235 | && (!(sp2 = index(sp, ' ')) || wlen+1+(sp2-sp) > room))) { | 235 | && (!(sp2 = strchr(sp, ' ')) || wlen+1+(sp2-sp) > room))) { |
| 236 | cur_y++; | 236 | cur_y++; |
| 237 | cur_x = x; | 237 | cur_x = x; |
| 238 | } | 238 | } |
