summaryrefslogtreecommitdiff
path: root/libc/stdio/_fopen.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2005-03-21 14:48:49 +0000
committerManuel Novoa III <mjn3@codepoet.org>2005-03-21 14:48:49 +0000
commiteacee75ca5a7f740f9eacc505f9646814ff340ff (patch)
tree7c5f34540f3bbdefea0d77c65b0ec921f1006189 /libc/stdio/_fopen.c
parent2d31c8c2c6ef432aa8c27defc53036859dd00560 (diff)
Forgot to change name of builtin buffer during last rewrite.
Diffstat (limited to 'libc/stdio/_fopen.c')
-rw-r--r--libc/stdio/_fopen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/stdio/_fopen.c b/libc/stdio/_fopen.c
index 6e3d53bd8..f7f5bb626 100644
--- a/libc/stdio/_fopen.c
+++ b/libc/stdio/_fopen.c
@@ -165,9 +165,8 @@ FILE *_stdio_fopen(intptr_t fname_or_mode,
stream->__modeflags |= __FLAG_FREEBUF;
} else {
# if __STDIO_BUILTIN_BUF_SIZE > 0
-#warning if builtin buffer, then need probably want to test vs that too
- stream->__bufstart = stream->unbuf;
- stream->__bufend = stream->unbuf + sizeof(stream->unbuf);
+ stream->__bufstart = stream->__builtinbuf;
+ stream->__bufend = stream->__builtinbuf + sizeof(stream->__builtinbuf);
# else /* __STDIO_BUILTIN_BUF_SIZE > 0 */
stream->__bufend = stream->__bufstart;
# endif /* __STDIO_BUILTIN_BUF_SIZE > 0 */