projects
/
hopm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
565ccfc
)
- irc.c:m_notice(): don't use 'static' if there's no need to
author
michael
<michael@82007160-df01-0410-b94d-b575c5fd34c7>
Sat, 3 Jan 2015 20:38:33 +0000
(20:38 +0000)
committer
michael
<michael@82007160-df01-0410-b94d-b575c5fd34c7>
Sat, 3 Jan 2015 20:38:33 +0000
(20:38 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5289
82007160
-df01-0410-b94d-
b575c5fd34c7
src/irc.c
patch
|
blob
|
history
diff --git
a/src/irc.c
b/src/irc.c
index 2d3a14f6b35fd3ac13a33829138462976d73f019..1712da453dedd4314dc2fc1d1b338423cf86579b 100644
(file)
--- a/
src/irc.c
+++ b/
src/irc.c
@@
-857,8
+857,6
@@
m_notice(char **parv, unsigned int parc, char *msg, struct UserInfo *source_p)
{
static regex_t *preg = NULL;
regmatch_t pmatch[5];
-
- static char errmsg[256];
int errnum;
char *user[4];
@@
-876,7
+874,9
@@
m_notice(char **parv, unsigned int parc, char *msg, struct UserInfo *source_p)
if ((errnum = regcomp(preg, IRCItem->connregex, REG_ICASE | REG_EXTENDED)))
{
- regerror(errnum, preg, errmsg, 256);
+ char errmsg[256];
+
+ regerror(errnum, preg, errmsg, sizeof(errmsg));
log_printf("IRC REGEX -> Error when compiling regular expression");
log_printf("IRC REGEX -> %s", errmsg);