dgorbachev@svn.reactos.org
3 Nov
2013
3 Nov
'13
11:05 a.m.
Author: dgorbachev
Date: Sun Nov 3 11:04:59 2013
New Revision: 60843
URL:
http://svn.reactos.org/svn/reactos?rev=60843&view=rev
Log:
[TCPSVCS]
Fix buffer size.
Modified:
trunk/reactos/base/services/tcpsvcs/chargen.c
Modified: trunk/reactos/base/services/tcpsvcs/chargen.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/tcpsvcs/char…
==============================================================================
--- trunk/reactos/base/services/tcpsvcs/chargen.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/tcpsvcs/chargen.c [iso-8859-1] Sun Nov 3 11:04:59 2013
@@ -12,7 +12,7 @@
/* printable ASCII's characters for chargen */
#define ASCII_START 32
#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 */
#define LINESIZE 74 // 72 + CR + NL
@@ -58,7 +58,7 @@
/* fill the array with printable characters */
for (charIndex = 0, i = ASCII_START; i <= ASCII_END; charIndex++, i++)
- chars[charIndex] = (char)i;
+ chars[charIndex] = (CHAR)i;
loopIndex = 0;
while (!bShutdown)