ircd: send: these buffers can be static

This commit is contained in:
Simon Arlott 2017-07-29 23:24:23 +01:00
parent b6f271b2aa
commit 5ce6360b72
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -218,7 +218,7 @@ send_queued_write(rb_fde_t *F, void *data)
static void
linebuf_put_msgvbuf(struct MsgBuf *msgbuf, buf_head_t *linebuf, unsigned int capmask, const char *pattern, va_list *va)
{
char buf[EXT_BUFSIZE];
static char buf[EXT_BUFSIZE];
size_t buflen = sizeof(buf);
rb_linebuf_newbuf(linebuf);
@ -479,7 +479,7 @@ void
sendto_channel_flags(struct Client *one, int type, struct Client *source_p,
struct Channel *chptr, const char *pattern, ...)
{
char buf[BUFSIZE];
static char buf[BUFSIZE];
va_list args;
buf_head_t rb_linebuf_local;
buf_head_t rb_linebuf_id;