public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c93f6d9
)
previous fix was wrong; added another
author
ceriel
<none@none>
Wed, 2 Sep 1987 12:52:44 +0000
(12:52 +0000)
committer
ceriel
<none@none>
Wed, 2 Sep 1987 12:52:44 +0000
(12:52 +0000)
lang/cem/libcc/stdio/freopen.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc/stdio/freopen.c
b/lang/cem/libcc/stdio/freopen.c
index
5711a29
..
1dcde67
100644
(file)
--- a/
lang/cem/libcc/stdio/freopen.c
+++ b/
lang/cem/libcc/stdio/freopen.c
@@
-51,7
+51,8
@@
register FILE *fp;
return NULL;
}
fp->_count = 0;
- if (fp->_buf && (flags | IO_WRITEMODE)) fp->_count = BUFSIZ;
+ if (fp->_buf && !(flags & IO_UNBUFF) && (flags & IO_WRITEMODE))
+ fp->_count = BUFSIZ;
fp->_fd = fd;
fp->_flags = flags;
return(fp);