aboutsummaryrefslogtreecommitdiff
path: root/lib/alloc/bufalloc.c
blob: c688ab12b7433bc901c1c28edeea7905ef1a10c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include "alloc.h"
#include "errors.h"

void *
bufalloc(void *p, size_t n, size_t m)
{
	if ((p = bufalloc_noterm(p, n, m)) == nullptr)
		err(__func__);
	return p;
}