diff options
-rw-r--r-- | src/inspircd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 0e36bc674..cd32f861c 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -1235,7 +1235,7 @@ void strlower(char *n) { return; } - for (int i = 0; i != strlen(n); i++) + for (int i = 0; n[i] != 0; i++) { n[i] = tolower(n[i]); if (n[i] == '[') |