mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 06:52:07 +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:
parent
795b09cde7
commit
36dab01cab
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ GenerateChars(SOCKET sock)
|
||||||
line[i] = chars[charIndex];
|
line[i] = chars[charIndex];
|
||||||
|
|
||||||
/* if we hit the end char, reset it */
|
/* if we hit the end char, reset it */
|
||||||
if (chars[charIndex] == chars[NUM_CHARS])
|
if (chars[charIndex] == chars[NUM_CHARS - 1])
|
||||||
charIndex = 0;
|
charIndex = 0;
|
||||||
else
|
else
|
||||||
charIndex++;
|
charIndex++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue