diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-12-17 19:35:26 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-12-17 19:35:26 +0000 |
commit | 875f0b6c90c0386d9a4ff4b686e2833ee9052a7c (patch) | |
tree | 6bdec9b4ef76d305235203f2843d577a41defc33 | |
parent | b3027b00fb56b99190b5f83ca1f5bb9a1a0a7c40 (diff) |
- Avoid magically sized temporary buffers
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2693 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r-- | src/conf.c | 6 | ||||
-rw-r--r-- | src/hook.c | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -1368,7 +1368,7 @@ static const struct oper_privs char * oper_privs_as_string(const unsigned int port) { - static char privs_out[16]; + static char privs_out[IRCD_BUFSIZE]; char *privs_ptr = privs_out; const struct oper_privs *opriv = flag_list; @@ -1433,8 +1433,8 @@ void read_conf_files(int cold) { const char *filename; - char chanmodes[32]; - char chanlimit[32]; + char chanmodes[IRCD_BUFSIZE]; + char chanlimit[IRCD_BUFSIZE]; conf_parser_ctx.boot = cold; filename = ConfigFileEntry.configfile; @@ -190,7 +190,7 @@ uninstall_hook(struct Callback *cb, CBFUNC *hook) void stats_hooks(struct Client *source_p) { - char lastused[32]; + char lastused[IRCD_BUFSIZE]; const dlink_node *ptr = NULL; sendto_one(source_p, ":%s %d %s : %-20s %-20s Used Hooks", me.name, |