Enlightenment CVS committal
Author : onefang
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_desktop
Modified Files:
ecore_desktop.c
Log Message:
Patch by Thomas Stark to remove blank parameters from exe arguments.
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -3 -r1.71 -r1.72
--- ecore_desktop.c 21 Dec 2006 03:36:27 -0000 1.71
+++ ecore_desktop.c 20 Feb 2007 10:12:45 -0000 1.72
@@ -257,7 +257,10 @@
{
*exe = '\0';
exe++;
- result->exec_params = strdup(exe);
+ /* trim the parameter string */
+ for(; isspace(*exe) && ((exe - result->exec) < PATH_MAX)
&& (*exe != '\0'); exe++);
+ if(*exe != '\0')
+ result->exec_params = strdup(exe);
}
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs