diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-05-06 23:19:47 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-05-06 23:19:47 +0000 |
commit | 1771d13a9b8ea11f1d8fed47867bc711d798d63c (patch) | |
tree | fca302b08c5e7fe309c2b8d9ebcdb879de81670c /usr.bin/signify | |
parent | a42c4cd13c08d8b3512bd1a1862b41f3d04f54e3 (diff) |
better alloc idiom
Diffstat (limited to 'usr.bin/signify')
-rw-r--r-- | usr.bin/signify/signify.c | 4 |
1 files 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 <tedu@openbsd.org> * @@ -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) { |