summaryrefslogtreecommitdiff
path: root/src/core/db_plain.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-14 21:29:39 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-14 21:29:39 +0000
commitfadc61f89e3c914424fdd37333ff356370d54d24 (patch)
tree0ac883428d87b62f0ad0e941ef4e37a7bf6ed94b /src/core/db_plain.cpp
parent711787b54d8b57ace877b09587f368cee5553b70 (diff)
Fixed crash caused by r2732 caused by adding someone to the exception list
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2756 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/db_plain.cpp')
-rw-r--r--src/core/db_plain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/db_plain.cpp b/src/core/db_plain.cpp
index 65eee0d3a..564cd9a35 100644
--- a/src/core/db_plain.cpp
+++ b/src/core/db_plain.cpp
@@ -481,7 +481,7 @@ static void LoadOperInfo(const std::vector<std::string> &params)
exceptions = static_cast<Exception *>(srealloc(exceptions, sizeof(Exception) * nexceptions));
exceptions[nexceptions - 1].mask = sstrdup(params[1].c_str());
exceptions[nexceptions - 1].limit = atol(params[2].c_str());
- exceptions[nexceptions - 1].who = params[3];
+ exceptions[nexceptions - 1].who = sstrdup(params[3].c_str());
exceptions[nexceptions - 1].time = strtol(params[4].c_str(), NULL, 10);
exceptions[nexceptions - 1].expires = strtol(params[5].c_str(), NULL, 10);
exceptions[nexceptions - 1].reason = sstrdup(params[6].c_str());