summaryrefslogtreecommitdiff
path: root/app/cwm/xmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/cwm/xmalloc.c')
-rw-r--r--app/cwm/xmalloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/xmalloc.c b/app/cwm/xmalloc.c
index 7d763c330..e454c24b7 100644
--- a/app/cwm/xmalloc.c
+++ b/app/cwm/xmalloc.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: xmalloc.c,v 1.2 2008/01/11 16:06:44 oga Exp $
+ * $Id: xmalloc.c,v 1.3 2008/04/16 13:38:09 oga Exp $
*/
#include "headers.h"
@@ -33,11 +33,11 @@ xmalloc(size_t siz)
}
void *
-xcalloc(size_t siz)
+xcalloc(size_t no, size_t siz)
{
void *p;
- if ((p = calloc(1, siz)) == NULL)
+ if ((p = calloc(no, siz)) == NULL)
err(1, "calloc");
return (p);