summaryrefslogtreecommitdiff
path: root/src/modules/hs_request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/hs_request.c')
-rw-r--r--src/modules/hs_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index 84f19806c..018fc20be 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -126,7 +126,7 @@ class CommandHSRequest : public Command
return MOD_CONT;
}
}
- if (strlen(rawhostmask) < HOSTMAX - 1)
+ if (strlen(rawhostmask) < HOSTMAX)
snprintf(hostmask, HOSTMAX, "%s", rawhostmask);
else
{