summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-12-17 18:55:43 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-12-17 18:55:43 +0000
commitb3027b00fb56b99190b5f83ca1f5bb9a1a0a7c40 (patch)
treec9ed00db5ba6fc3b871889d68a93978e2aaf278b /modules
parent354d611659dee2b7fda6576920529f1df5bff617 (diff)
- 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
Diffstat (limited to 'modules')
-rw-r--r--modules/m_stats.c2
-rw-r--r--modules/m_who.c2
2 files changed, 2 insertions, 2 deletions
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',