mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix a 0 byte allocation
This commit is contained in:
parent
d11fbc0b5c
commit
8c82a54ac7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue