summaryrefslogtreecommitdiff
path: root/asmmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'asmmon.c')
-rw-r--r--asmmon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/asmmon.c b/asmmon.c
index 876e6f0..6796ebb 100644
--- a/asmmon.c
+++ b/asmmon.c
@@ -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"));