more trivial fixes from Joerg Sonnenberger <joerg@britannica.bec.de>

SVN revision: 65799
This commit is contained in:
Mike Blumenkrantz 2011-12-02 03:33:19 +00:00
parent d9587433b5
commit 1b59d38784
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;