diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-23 02:52:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-23 02:52:15 +0000 |
commit | 5ef511eb2460cf761b65faf2bc73bc708c8f5e9e (patch) | |
tree | e06bba0940b30f9ee103447899251ac832f79caa | |
parent | f4255ebbf545d1a7cc4ac963387c74f1664ea2a6 (diff) |
use calloc better; adobriyan@gmail
-rw-r--r-- | usr.sbin/afs/src/milko/pts/pr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/afs/src/milko/pts/pr.c b/usr.sbin/afs/src/milko/pts/pr.c index 29f3c2d1a9d..2b99238ad13 100644 --- a/usr.sbin/afs/src/milko/pts/pr.c +++ b/usr.sbin/afs/src/milko/pts/pr.c @@ -141,7 +141,7 @@ PR_IDToName(struct rx_call *call, const idlist *ilist, namelist *nlist) return 0; } - nlist->val = calloc(1, sizeof(prname) * nlist->len); + nlist->val = calloc(nlist->len, sizeof(prname)); if (nlist->val == NULL) return PRDBBAD; |