aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig')
-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 d54440fc166c..a1a1354ba238 100644
--- a/scripts/kconfig/lxdialog/util.c
+++ b/scripts/kconfig/lxdialog/util.c
@@ -336,7 +336,7 @@ void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x)
336 newl = 1; 336 newl = 1;
337 word = tempstr; 337 word = tempstr;
338 while (word && *word) { 338 while (word && *word) {
339 sp = index(word, ' '); 339 sp = strchr(word, ' ');
340 if (sp) 340 if (sp)
341 *sp++ = 0; 341 *sp++ = 0;
342 342
@@ -348,7 +348,7 @@ void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x)
348 if (wlen > room || 348 if (wlen > room ||
349 (newl && wlen < 4 && sp 349 (newl && wlen < 4 && sp
350 && wlen + 1 + strlen(sp) > room 350 && wlen + 1 + strlen(sp) > room
351 && (!(sp2 = index(sp, ' ')) 351 && (!(sp2 = strchr(sp, ' '))
352 || wlen + 1 + (sp2 - sp) > room))) { 352 || wlen + 1 + (sp2 - sp) > room))) {
353 cur_y++; 353 cur_y++;
354 cur_x = x; 354 cur_x = x;