aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-29 15:51:35 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-29 15:51:35 +0100
commit2efdba96e52dfa91cbcc1b0740f4abeb9c74c124 (patch)
treefc93daf76cbf467a3b9d2c0b47b0039997dc8f82 /src
parenttypo (diff)
downloadslibc-2efdba96e52dfa91cbcc1b0740f4abeb9c74c124.tar.gz
slibc-2efdba96e52dfa91cbcc1b0740f4abeb9c74c124.tar.bz2
slibc-2efdba96e52dfa91cbcc1b0740f4abeb9c74c124.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src')
-rw-r--r--src/unistd/daemonise.c2
1 files changed, 1 insertions, 1 deletions
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)