summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 668cb95ec..5a8f55f11 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -339,8 +339,8 @@ bool IsNickHandler::Call(const char* n, size_t max)
return false;
}
- /* too long? or not -- pointer arithmetic rocks */
- return (p < max);
+ /* too long? or not */
+ return (p <= max);
}
/* return true for good ident, false else */