1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 10:16:40 +02:00

Some windows fixes from the Anope::string commit

This commit is contained in:
Adam
2010-07-27 02:03:10 -04:00
parent 57bb759305
commit d4048134af
5 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -288,8 +288,8 @@ void Module::NoticeLang(const Anope::string &source, const User *u, int number,
*s++ = '\0';
strscpy(outbuf, t, sizeof(outbuf));
u->SendMessage(source, "%s", outbuf);
}
delete [] buf;
}
free(buf);
}
else
Alog() << this->name << ": INVALID language string call, language: [" << mlang << "], String [" << number << "]";
@@ -326,7 +326,7 @@ void Module::DeleteLanguage(int langNumber)
if (this->lang[langNumber].argc)
{
for (int idx = 0; idx > this->lang[langNumber].argc; ++idx)
delete [] this->lang[langNumber].argv[idx];
free(this->lang[langNumber].argv[idx]); // XXX
delete [] this->lang[langNumber].argv;
this->lang[langNumber].argc = 0;
}