[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] afs: calloc(3) misuse



Index: usr.sbin/afs/src/milko/pts/pr.c
===================================================================
RCS file: /cvs/src/usr.sbin/afs/src/milko/pts/pr.c,v
retrieving revision 1.3
diff -u -p -r1.3 pr.c
--- usr.sbin/afs/src/milko/pts/pr.c	2003/08/05 09:16:15	1.3
+++ usr.sbin/afs/src/milko/pts/pr.c	2006/03/22 14:44:57
@@ -141,7 +141,7 @@ PR_IDToName(struct rx_call *call, const 
 	return 0;
     }
 
-    nlist->val = calloc(1, sizeof(prname) * nlist->len);
+    nlist->val = calloc(sizeof(prname), nlist->len);
     if (nlist->val == NULL)
 	return PRDBBAD;



Visit your host, monkey.org