1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 08:23:12 +02:00

Possible fix to the delete that explodes the world.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1794 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2008-11-25 11:26:24 +00:00
parent d2e3963d78
commit 6faec5eb4a
+2
View File
@@ -847,6 +847,7 @@ int anope_event_fjoin(const char *source, int ac, const char **av)
curnick = myStrGetToken(av[ac - 1], ' ', curtoken);
while (curnick != NULL)
{
char *curnick_real = curnick;
for (; *curnick; curnick++)
{
/* XXX: bleagh! -- w00t */
@@ -882,6 +883,7 @@ int anope_event_fjoin(const char *source, int ac, const char **av)
endnick:
strncat(nicklist, prefixandnick, 513);
strncat(nicklist, " ", 513);
delete [] curnick_real;
curtoken++;
curnick = myStrGetToken(av[ac - 1], ' ', curtoken);
nlen = 0;