From c8d42ad70065b0477569f3bd8bd7d4f08818bdc0 Mon Sep 17 00:00:00 2001 From: tedu Date: Tue, 6 May 2014 23:19:46 +0000 Subject: [PATCH] better alloc idiom --- usr.bin/signify/signify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.20.1