Replace a few leftover calls to strdup and calloc with xstrdup and xcalloc

respectively.

ok okan.
This commit is contained in:
oga
2008-04-16 13:38:09 +00:00
parent f67772be65
commit f473dc3d12
5 changed files with 11 additions and 16 deletions

View File

@@ -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);