diff options
Diffstat (limited to 'lib/strftime.c')
| -rw-r--r-- | lib/strftime.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/strftime.c b/lib/strftime.c index 213ced860de..91d5d85cbcf 100644 --- a/lib/strftime.c +++ b/lib/strftime.c | |||
| @@ -208,7 +208,14 @@ extern char *tzname[]; | |||
| 208 | else if (to_uppcase) \ | 208 | else if (to_uppcase) \ |
| 209 | fwrite_uppcase (p, (s), _n); \ | 209 | fwrite_uppcase (p, (s), _n); \ |
| 210 | else \ | 210 | else \ |
| 211 | fwrite (s, _n, 1, p); \ | 211 | { \ |
| 212 | /* Ignore the value of fwrite. The caller can determine whether \ | ||
| 213 | an error occurred by inspecting ferror (P). All known fwrite \ | ||
| 214 | implementations set the stream's error indicator when they \ | ||
| 215 | fail due to ENOMEM etc., even though C11 and POSIX.1-2008 do \ | ||
| 216 | not require this. */ \ | ||
| 217 | fwrite (s, _n, 1, p); \ | ||
| 218 | } \ | ||
| 212 | } \ | 219 | } \ |
| 213 | while (0) \ | 220 | while (0) \ |
| 214 | ) | 221 | ) |