summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-13 21:00:59 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-13 21:00:59 +0000
commitec7bc8dd41c9c138457473ced5f71ef01b9c4b70 (patch)
tree0284248549f59b8c56bbd81f001e29dd9bad666c
parent6ee50f852e29e176581279b97cd5479fc2c5c2e6 (diff)
Fixed the second part of bug #1138
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2813 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/core/hs_set.c4
-rw-r--r--src/core/hs_setall.c4
-rw-r--r--version.log2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hs_set.c b/src/core/hs_set.c
index 911ad7c1e..4cbc30afa 100644
--- a/src/core/hs_set.c
+++ b/src/core/hs_set.c
@@ -119,8 +119,8 @@ int myDoSet(User * u)
return MOD_CONT;
}
}
- if (strlen(rawhostmask) < HOSTMAX - 1)
- snprintf(hostmask, HOSTMAX - 1, "%s", rawhostmask);
+ if (strlen(rawhostmask) < HOSTMAX)
+ snprintf(hostmask, HOSTMAX, "%s", rawhostmask);
else {
notice_lang(s_HostServ, u, HOST_SET_TOOLONG, HOSTMAX);
if (vIdent) {
diff --git a/src/core/hs_setall.c b/src/core/hs_setall.c
index 6942191db..a7aad270a 100644
--- a/src/core/hs_setall.c
+++ b/src/core/hs_setall.c
@@ -122,8 +122,8 @@ int do_setall(User * u)
}
}
- if (strlen(rawhostmask) < HOSTMAX - 1)
- snprintf(hostmask, HOSTMAX - 1, "%s", rawhostmask);
+ if (strlen(rawhostmask) < HOSTMAX)
+ snprintf(hostmask, HOSTMAX, "%s", rawhostmask);
else {
notice_lang(s_HostServ, u, HOST_SET_TOOLONG, HOSTMAX);
if (vIdent) {
diff --git a/version.log b/version.log
index 1084719ea..296fdacc9 100644
--- a/version.log
+++ b/version.log
@@ -9,7 +9,7 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="3"
VERSION_EXTRA="-svn"
-VERSION_BUILD="2811"
+VERSION_BUILD="2813"
# $Log$ # Changes since 1.8.3 Release