From 8f7cdd5b61112802973470e74a87da52ee064920 Mon Sep 17 00:00:00 2001 From: satmd Date: Sun, 1 Jun 2014 17:53:31 +0200 Subject: Fix harmless loop off-by-ones found by Moonlightning --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 573d4db90..91db5200a 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -637,7 +637,7 @@ void OperInfo::init() { this->AllowedUserModes.set(); } - else if (*c >= 'A' && *c < 'z') + else if (*c >= 'A' && *c <= 'z') { this->AllowedUserModes[*c - 'A'] = true; } @@ -650,7 +650,7 @@ void OperInfo::init() { this->AllowedChanModes.set(); } - else if (*c >= 'A' && *c < 'z') + else if (*c >= 'A' && *c <= 'z') { this->AllowedChanModes[*c - 'A'] = true; } -- cgit v1.2.3