diff options
Diffstat (limited to '')
-rw-r--r-- | src/daemonise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemonise.c b/src/daemonise.c index 8d94a90..c9de08a 100644 --- a/src/daemonise.c +++ b/src/daemonise.c @@ -233,7 +233,7 @@ int daemonise(const char* name, int flags, ...) if ((fd > 2) && (keepmax < fd)) keepmax = fd; va_end(args); - keep = calloc(keepmax + 1, sizeof(char)); + keep = calloc((size_t)keepmax + 1, sizeof(char)); t (keep == NULL); va_start(args, flags); while ((fd = va_arg(args, int)) >= 0) |