artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3126f2c
)
malloc -> calloc
author
gilles
<gilles@openbsd.org>
Tue, 22 Apr 2014 13:57:58 +0000
(13:57 +0000)
committer
gilles
<gilles@openbsd.org>
Tue, 22 Apr 2014 13:57:58 +0000
(13:57 +0000)
usr.sbin/smtpd/smtpctl.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/smtpctl.c
b/usr.sbin/smtpd/smtpctl.c
index
0a13a31
..
a710c4f
100644
(file)
--- a/
usr.sbin/smtpd/smtpctl.c
+++ b/
usr.sbin/smtpd/smtpctl.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: smtpctl.c,v 1.11
8 2014/04/19 13:57:17
gilles Exp $ */
+/* $OpenBSD: smtpctl.c,v 1.11
9 2014/04/22 13:57:58
gilles Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@
-307,9
+307,9
@@
srv_iter_evpids(uint32_t msgid, uint64_t *evpid, int *offset)
if (evpids == NULL) {
alloc = 1000;
- evpids =
malloc(alloc *
sizeof(*evpids));
+ evpids =
calloc(alloc,
sizeof(*evpids));
if (evpids == NULL)
- err(1, "
m
alloc");
+ err(1, "
c
alloc");
}
if (*offset == 0) {