forked from enlightenment/efl
more trivial fixes from Joerg Sonnenberger <joerg@britannica.bec.de>
SVN revision: 65799
This commit is contained in:
parent
d9587433b5
commit
1b59d38784
|
@ -130,7 +130,7 @@ _ecore_getopt_help_line(FILE *fp,
|
||||||
todo = len;
|
todo = len;
|
||||||
|
|
||||||
for (i = 0; i < todo; i++)
|
for (i = 0; i < todo; i++)
|
||||||
if (isspace(text[i]))
|
if (isspace((unsigned char)text[i]))
|
||||||
{
|
{
|
||||||
space = text + i;
|
space = text + i;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -859,7 +859,7 @@ ecore_file_app_exe_get(const char *app)
|
||||||
|
|
||||||
p = (char *)app;
|
p = (char *)app;
|
||||||
restart:
|
restart:
|
||||||
while ((*p) && (isspace(*p))) p++;
|
while ((*p) && (isspace((unsigned char)*p))) p++;
|
||||||
exe1 = p;
|
exe1 = p;
|
||||||
while (*p)
|
while (*p)
|
||||||
{
|
{
|
||||||
|
@ -879,7 +879,7 @@ restart:
|
||||||
in_quot_sing = 1;
|
in_quot_sing = 1;
|
||||||
else if (*p == '\"')
|
else if (*p == '\"')
|
||||||
in_quot_dbl = 1;
|
in_quot_dbl = 1;
|
||||||
if ((isspace(*p)) && (!((p > app) && (p[-1] != '\\'))))
|
if ((isspace((unsigned char)*p)) && ((p <= app) || (p[-1] == '\\')))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
p++;
|
p++;
|
||||||
|
@ -974,7 +974,7 @@ restart:
|
||||||
in_quot_sing = 1;
|
in_quot_sing = 1;
|
||||||
else if (*p == '\"')
|
else if (*p == '\"')
|
||||||
in_quot_dbl = 1;
|
in_quot_dbl = 1;
|
||||||
else if (isspace(*p))
|
else if (isspace((unsigned char)*p))
|
||||||
{
|
{
|
||||||
if (restart)
|
if (restart)
|
||||||
goto restart;
|
goto restart;
|
||||||
|
|
Loading…
Reference in New Issue