mirror of
https://github.com/anope/anope.git
synced 2026-06-30 06:16:38 +02:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user