소스 검색

Forgot to change name of builtin buffer during last rewrite.

Manuel Novoa III 20 년 전
부모
커밋
eacee75ca5
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      libc/stdio/_fopen.c

+ 2 - 3
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 */