[CRT]
authorJérôme Gardou <jerome.gardou@reactos.org>
Tue, 21 Feb 2012 23:19:47 +0000 (23:19 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Tue, 21 Feb 2012 23:19:47 +0000 (23:19 +0000)
 - fix array size to match what implementation expects.
Found by Thomas Faber. See issue 6903 for details.

svn path=/trunk/; revision=55800

reactos/lib/sdk/crt/stdio/file.c

index 6af8a55..c00a459 100644 (file)
@@ -112,8 +112,8 @@ typedef struct {
     CRITICAL_SECTION crit;
 } file_crit;
 
-FILE _iob[3] = { { 0 } };
-static file_crit* fstream[MAX_FILES/FD_BLOCK_SIZE];
+FILE _iob[_IOB_ENTRIES] = { { 0 } };
+static file_crit* fstream[MAX_FILES/FD_BLOCK_SIZE] = { NULL };
 static int max_streams = 512, stream_idx;
 
 /* INTERNAL: process umask */