diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-12 00:42:57 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-12 00:42:57 +0000 |
commit | 87ffdf06b6ecc46b38ca953419304b64e37c7c95 (patch) | |
tree | 9e44c0b5a073ee17b9d7d3da181c696f012c6248 /usr.bin/newsyslog/newsyslog.c | |
parent | 941ec3d1051d178a11f6baa72a3d520413033f2e (diff) |
Swap args to calloc(3) so they are in the correct order; art@ ok.
Diffstat (limited to 'usr.bin/newsyslog/newsyslog.c')
-rw-r--r-- | usr.bin/newsyslog/newsyslog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c index 594a38a8b3c..03626180318 100644 --- a/usr.bin/newsyslog/newsyslog.c +++ b/usr.bin/newsyslog/newsyslog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyslog.c,v 1.45 2002/06/26 23:36:14 wcobb Exp $ */ +/* $OpenBSD: newsyslog.c,v 1.46 2002/08/12 00:42:56 aaron Exp $ */ /* * Copyright (c) 1999 Todd C. Miller <Todd.Miller@courtesan.com> @@ -88,7 +88,7 @@ provided "as is" without express or implied warranty. */ #ifndef lint -static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.45 2002/06/26 23:36:14 wcobb Exp $"; +static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.46 2002/08/12 00:42:56 aaron Exp $"; #endif /* not lint */ #ifndef CONF @@ -202,7 +202,7 @@ main(argc, argv) p = q = parse_file(&listlen); signal(SIGCHLD, child_killer); - pidlist = (struct pidinfo *)calloc(sizeof(struct pidinfo), listlen + 1); + pidlist = (struct pidinfo *)calloc(listlen + 1, sizeof(struct pidinfo)); if (pidlist == NULL) err(1, "calloc"); |