[ros-diffs] [jgardou] 55800: [CRT] - fix array size to match what implementation expects. Found by Thomas Faber. See issue 6903 for details.
jgardou at svn.reactos.org
jgardou at svn.reactos.org
Tue Feb 21 23:19:48 UTC 2012
Author: jgardou
Date: Tue Feb 21 23:19:47 2012
New Revision: 55800
URL: http://svn.reactos.org/svn/reactos?rev=55800&view=rev
Log:
[CRT]
- fix array size to match what implementation expects.
Found by Thomas Faber. See issue 6903 for details.
Modified:
trunk/reactos/lib/sdk/crt/stdio/file.c
Modified: trunk/reactos/lib/sdk/crt/stdio/file.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/stdio/file.c?rev=55800&r1=55799&r2=55800&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] Tue Feb 21 23:19:47 2012
@@ -112,8 +112,8 @@
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 */
More information about the Ros-diffs
mailing list