mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[TCPSVCS]
Fix buffer size. svn path=/trunk/; revision=60843
This commit is contained in:
parent
a7708e17cc
commit
40ad1910ef
|
@ -12,7 +12,7 @@
|
||||||
/* printable ASCII's characters for chargen */
|
/* printable ASCII's characters for chargen */
|
||||||
#define ASCII_START 32
|
#define ASCII_START 32
|
||||||
#define ASCII_END 126
|
#define ASCII_END 126
|
||||||
#define NUM_CHARS ASCII_END - ASCII_START
|
#define NUM_CHARS ASCII_END - ASCII_START + 1
|
||||||
|
|
||||||
/* number of chars to put on a line */
|
/* number of chars to put on a line */
|
||||||
#define LINESIZE 74 // 72 + CR + NL
|
#define LINESIZE 74 // 72 + CR + NL
|
||||||
|
@ -58,7 +58,7 @@ GenerateChars(SOCKET sock)
|
||||||
|
|
||||||
/* fill the array with printable characters */
|
/* fill the array with printable characters */
|
||||||
for (charIndex = 0, i = ASCII_START; i <= ASCII_END; charIndex++, i++)
|
for (charIndex = 0, i = ASCII_START; i <= ASCII_END; charIndex++, i++)
|
||||||
chars[charIndex] = (char)i;
|
chars[charIndex] = (CHAR)i;
|
||||||
|
|
||||||
loopIndex = 0;
|
loopIndex = 0;
|
||||||
while (!bShutdown)
|
while (!bShutdown)
|
||||||
|
|
Loading…
Reference in a new issue