svn commit: trunk/busybox/scripts/kconfig/lxdialog
vapier at busybox.net
vapier at busybox.net
Sat Mar 17 06:29:05 UTC 2007
Author: vapier
Date: 2007-03-16 23:29:05 -0700 (Fri, 16 Mar 2007)
New Revision: 18132
Log:
dont use obsolete function index() as pointed out by src.obsolete.funcs
Modified:
trunk/busybox/scripts/kconfig/lxdialog/util.c
Changeset:
Modified: trunk/busybox/scripts/kconfig/lxdialog/util.c
===================================================================
--- trunk/busybox/scripts/kconfig/lxdialog/util.c 2007-03-17 06:27:38 UTC (rev 18131)
+++ trunk/busybox/scripts/kconfig/lxdialog/util.c 2007-03-17 06:29:05 UTC (rev 18132)
@@ -224,7 +224,7 @@
newl = 1;
word = tempstr;
while (word && *word) {
- sp = index(word, ' ');
+ sp = strchr(word, ' ');
if (sp)
*sp++ = 0;
@@ -236,7 +236,7 @@
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;
More information about the busybox-cvs
mailing list