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

Fixed the second part of bug #1138

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2813 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-03-13 21:00:59 +00:00
parent 6ee50f852e
commit ec7bc8dd41
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+1 -1
View File
@@ -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