mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
- Don't check outside of the array bounds
- Spotted by Marcelo Slomp <mslomp at linuxmail dot org> See issue #3593 for more details. svn path=/trunk/; revision=34892
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user