[BusyBox-cvs] svn commit: trunk/busybox/libbb

vapier at busybox.net vapier at busybox.net
Tue Aug 16 05:39:08 UTC 2005


Author: vapier
Date: 2005-08-15 23:39:07 -0600 (Mon, 15 Aug 2005)
New Revision: 11169

Log:
the () around isspace actually matters

Modified:
   trunk/busybox/libbb/xgetlarg.c


Changeset:
Modified: trunk/busybox/libbb/xgetlarg.c
===================================================================
--- trunk/busybox/libbb/xgetlarg.c	2005-08-16 05:32:42 UTC (rev 11168)
+++ trunk/busybox/libbb/xgetlarg.c	2005-08-16 05:39:07 UTC (rev 11169)
@@ -21,8 +21,10 @@
 
 	assert(arg!=NULL);
 
-	/* Don't allow leading whitespace. */
-	if (isspace(*arg)) {	/* Use an actual function call for minimal size. */
+	/* Don't allow leading whitespace.
+	 * Wrap isspace in () to make sure we call the 
+	 * function rather than the macro. */
+	if ((isspace)(*arg)) {
 		bb_show_usage();
 	}
 




More information about the busybox-cvs mailing list