diff options
| author | Assar Westerlund <assar@FreeBSD.org> | 2001-06-18 04:44:23 +0000 |
|---|---|---|
| committer | Assar Westerlund <assar@FreeBSD.org> | 2001-06-18 04:44:23 +0000 |
| commit | 1866adc54f81422afdf09182ee5bdbae3e88ed70 (patch) | |
| tree | 4c24782e5063e27f63c4136644a63b7513484d18 /lib/libc | |
| parent | a52532c91aa8b3a31a969908fb0e7a5ce64951fd (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/stdio/local.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h index 3e498d36d4fc..06fecc993df8 100644 --- a/lib/libc/stdio/local.h +++ b/lib/libc/stdio/local.h @@ -81,7 +81,8 @@ struct __sFILEX { * Return true iff the given FILE cannot be written now. */ #define cantwrite(fp) \ - ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \ + ((((fp)->_flags & __SWR) == 0 || \ + ((fp)->_bf._base == NULL && ((fp)->_flags & __SSTR) == 0)) && \ __swsetup(fp)) /* |
