svn commit: branches/uClibc_0_9_29/extra/config/lxdialog
vapier at uclibc.org
vapier at uclibc.org
Sat Jan 5 09:32:52 PST 2008
Author: vapier
Date: 2008-01-05 09:32:52 -0800 (Sat, 05 Jan 2008)
New Revision: 20757
Log:
Merge r19832 by vapier from trunk:
fix from Kevin Day to make sure we use strchr() rather than index()
Modified:
branches/uClibc_0_9_29/extra/config/lxdialog/util.c
Changeset:
Modified: branches/uClibc_0_9_29/extra/config/lxdialog/util.c
===================================================================
--- branches/uClibc_0_9_29/extra/config/lxdialog/util.c 2008-01-05 17:30:18 UTC (rev 20756)
+++ branches/uClibc_0_9_29/extra/config/lxdialog/util.c 2008-01-05 17:32:52 UTC (rev 20757)
@@ -336,7 +336,7 @@
newl = 1;
word = tempstr;
while (word && *word) {
- sp = index(word, ' ');
+ sp = strchr(word, ' ');
if (sp)
*sp++ = 0;
@@ -348,7 +348,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 uClibc-cvs
mailing list