diff options
Diffstat (limited to 'asmmon.c')
-rw-r--r-- | asmmon.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -536,7 +536,6 @@ int asmmon(const char *fn) { } fp2 = fopen(fn2, "r"); if (fp2 == NULL) { - free(path); fclose(fp); cleanup(); return 2; @@ -572,7 +571,7 @@ int asmmon(const char *fn) { if (isspace(tmp[i])) { for (; isspace(tmp[i]); i++); } - for (; !isspace(tmp[i]) && tmp[i] != '\0' && tmp[i] != '\n'; arg[j++] = tmp[i++]); + for (; !(isdelm(tmp[i], 0) & 0x11); arg[j++] = tmp[i++]); arg[j] = '\0'; j = 0; isdebug = (arg[j] == 'd' || !strcasecmp(arg, "debug")); |