From ec7bc8dd41c9c138457473ced5f71ef01b9c4b70 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sat, 13 Mar 2010 21:00:59 +0000 Subject: [PATCH] Fixed the second part of bug #1138 git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2813 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/hs_set.c | 4 ++-- src/core/hs_setall.c | 4 ++-- version.log | 2 +- 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