Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        actions.c mod-misc.c 


Log Message:
Fix potential segv's.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/actions.c,v
retrieving revision 1.184
retrieving revision 1.185
diff -u -3 -r1.184 -r1.185
--- actions.c   16 Feb 2005 17:57:30 -0000      1.184
+++ actions.c   25 Feb 2005 19:18:00 -0000      1.185
@@ -145,6 +145,9 @@
    char                exe[FILEPATH_LEN_MAX];
    const char         *s = params;
 
+   if (!s)
+      return -1;
+
    sscanf(s, "%4000s", exe);
    runApp(exe, s);
 
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/mod-misc.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- mod-misc.c  16 Feb 2005 17:58:48 -0000      1.9
+++ mod-misc.c  25 Feb 2005 19:18:05 -0000      1.10
@@ -164,7 +164,10 @@
 static void
 MiscIpcExec(const char *params, Client * c __UNUSED__)
 {
-   execApplication(params);
+   if (params)
+      execApplication(params);
+   else
+      IpcPrintf("exec what?\n");
 }
 
 static void




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to