projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b517b30
)
[CRT]
author
Jérôme Gardou
<jerome.gardou@reactos.org>
Tue, 21 Feb 2012 23:19:47 +0000
(23:19 +0000)
committer
Jé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
patch
|
blob
|
history
diff --git
a/reactos/lib/sdk/crt/stdio/file.c
b/reactos/lib/sdk/crt/stdio/file.c
index
6af8a55
..
c00a459
100644
(file)
--- a/
reactos/lib/sdk/crt/stdio/file.c
+++ b/
reactos/lib/sdk/crt/stdio/file.c
@@
-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 */