diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-31 07:24:45 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-31 07:24:45 +0000 |
commit | cd10010f50b7e856b2fa668dfb089f4308752291 (patch) | |
tree | 96911ad562c6b75017bb8c2435ed137aba7e7242 /src | |
parent | c16600fee5d3b2d01823e3e793d1fc4ad794a521 (diff) |
Possible fix for a crash bug in the InspIRCd 1.1 module.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1894 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/protocol/inspircd11.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index d1df8220f..03d6fceb0 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -804,6 +804,7 @@ int anope_event_fjoin(const char *source, int ac, const char **av) curnick = myStrGetToken(av[2], ' ', curtoken); while (curnick != NULL) { + char *curnick_real = curnick; for (; *curnick; curnick++) { /* I bet theres a better way to do this... */ if ((*curnick == '&') || @@ -824,7 +825,7 @@ int anope_event_fjoin(const char *source, int ac, const char **av) } strncat(nicklist, prefixandnick, 513); strncat(nicklist, " ", 513); - delete [] curnick; + delete [] curnick_real; curtoken++; curnick = myStrGetToken(av[2], ' ', curtoken); nlen = 0; |