Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
ircd: send: these buffers can be static
Browse files Browse the repository at this point in the history
  • Loading branch information
nomis committed Jul 29, 2017
1 parent b6f271b commit 5ce6360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ircd/send.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5ce6360

Please sign in to comment.