From 2efdba96e52dfa91cbcc1b0740f4abeb9c74c124 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 29 Dec 2015 15:51:35 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/unistd/daemonise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/unistd/daemonise.c b/src/unistd/daemonise.c index 189fd5f..a3179b3 100644 --- a/src/unistd/daemonise.c +++ b/src/unistd/daemonise.c @@ -227,7 +227,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) -- cgit v1.2.3-70-g09d2