From b3027b00fb56b99190b5f83ca1f5bb9a1a0a7c40 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 17 Dec 2013 18:55:43 +0000 Subject: - Avoid magically sized temporary buffers git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2690 82007160-df01-0410-b94d-b575c5fd34c7 --- modules/m_stats.c | 2 +- modules/m_who.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/m_stats.c b/modules/m_stats.c index 56336c3..b6e56bb 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -82,7 +82,7 @@ report_confitem_types(struct Client *source_p, enum maskitem_type type) dlink_node *ptr = NULL; struct MaskItem *conf = NULL; const struct shared_flags *shared = NULL; - char buf[12]; + char buf[IRCD_BUFSIZE]; char *p = NULL; switch (type) diff --git a/modules/m_who.c b/modules/m_who.c index 47c376e..961bb01 100644 --- a/modules/m_who.c +++ b/modules/m_who.c @@ -51,7 +51,7 @@ static void do_who(struct Client *source_p, struct Client *target_p, const char *chname, const char *op_flags) { - char status[8]; /* Gr*@%+\0 */ + char status[IRCD_BUFSIZE]; if (HasUMode(source_p, UMODE_OPER)) snprintf(status, sizeof(status), "%c%s%s%s", target_p->away[0] ? 'G' : 'H', -- cgit