[util] Use a clearer parameter name for SZ_Alloc

This commit is contained in:
Bill Currie 2021-04-04 13:36:29 +09:00
parent 658890d681
commit 7864bb0ba6
2 changed files with 6 additions and 6 deletions

View file

@ -44,7 +44,7 @@ typedef struct sizebuf_s
int cursize;
} sizebuf_t;
void SZ_Alloc (sizebuf_t *buf, int startsize);
void SZ_Alloc (sizebuf_t *buf, int maxsize);
void SZ_Free (sizebuf_t *buf);
void SZ_Clear (sizebuf_t *buf);
void *SZ_GetSpace (sizebuf_t *buf, int length);

View file

@ -41,12 +41,12 @@
VISIBLE void
SZ_Alloc (sizebuf_t *buf, int startsize)
SZ_Alloc (sizebuf_t *buf, int maxsize)
{
if (startsize < 256)
startsize = 256;
buf->data = Hunk_AllocName (startsize, "sizebuf");
buf->maxsize = startsize;
if (maxsize < 256)
maxsize = 256;
buf->data = Hunk_AllocName (maxsize, "sizebuf");
buf->maxsize = maxsize;
buf->cursize = 0;
}