diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/argparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/argparser.c b/src/argparser.c index 7e92605..908c16a 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -656,7 +656,7 @@ extern char* args_parent_name(long levels) } n = fread(data, 1, 2048, is); j = 0; - for (i = 0; i < n; i++) + for (i = 0; i < (long)n; i++) { char c = *(data + i); if (c == '\n') @@ -701,10 +701,10 @@ extern char* args_parent_name(long levels) for (;;) { n += fread(cmd, 1, 128, is); - for (; i < n; i++) + for (; i < (long)n; i++) if (*(cmd + i) == 0) break; - if (i == n) + if (i == (long)n) cmd = (char*)realloc(cmd, (cmdsize + 128) * sizeof(char)); else break; |