From: tedu Date: Tue, 6 May 2014 23:19:46 +0000 (+0000) Subject: better alloc idiom X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c8d42ad70065b0477569f3bd8bd7d4f08818bdc0;p=openbsd better alloc idiom --- diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c index 506ed3b644f..e4a4159057c 100644 --- a/usr.bin/signify/signify.c +++ b/usr.bin/signify/signify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: signify.c,v 1.73 2014/05/06 23:17:13 tedu Exp $ */ +/* $OpenBSD: signify.c,v 1.74 2014/05/06 23:19:46 tedu Exp $ */ /* * Copyright (c) 2013 Ted Unangst * @@ -572,7 +572,7 @@ verifychecksums(char *msg, int argc, char **argv, int quiet) uselist = 1; count = nchecksums; } - if (!(failures = calloc(count, sizeof(int)))) + if (!(failures = calloc(count, sizeof(*failures)))) err(1, "calloc"); for (i = 0; i < count; i++) { if (uselist) {