aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/config/lxdialog/util.c4
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 }