fix a 0 byte allocation

This commit is contained in:
Bill Currie 2002-08-26 00:30:31 +00:00
parent d11fbc0b5c
commit 8c82a54ac7

View file

@ -103,7 +103,7 @@ bi_cbuf_clear (progs_t *pr, void *data)
void
Cbuf_Progs_Init (progs_t *pr)
{
cbuf_resources_t *res = calloc (sizeof (cbuf_resources_t), 0);
cbuf_resources_t *res = calloc (sizeof (cbuf_resources_t), 1);
PR_Resources_Register (pr, "Cbuf", res, bi_cbuf_clear);
PR_AddBuiltin (pr, "Cbuf_AddText", bi_Cbuf_AddText, -1);