forked from enlightenment/efl
Patch by Thomas Stark to remove blank parameters from exe arguments.
SVN revision: 28401
This commit is contained in:
parent
e0ceaf7b11
commit
47dac6602d
|
@ -257,7 +257,10 @@ _ecore_desktop_get(const char *file, const char *lang)
|
||||||
{
|
{
|
||||||
*exe = '\0';
|
*exe = '\0';
|
||||||
exe++;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue