From: <enl...@li...> - 2005-02-25 19:18:17
|
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 |