diff --git a/reactos/base/services/tcpsvcs/chargen.c b/reactos/base/services/tcpsvcs/chargen.c index 7d7d829db87..2f2b17124bd 100644 --- a/reactos/base/services/tcpsvcs/chargen.c +++ b/reactos/base/services/tcpsvcs/chargen.c @@ -74,7 +74,7 @@ GenerateChars(SOCKET sock) line[i] = chars[charIndex]; /* if we hit the end char, reset it */ - if (chars[charIndex] == chars[NUM_CHARS]) + if (chars[charIndex] == chars[NUM_CHARS - 1]) charIndex = 0; else charIndex++;