diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-06-07 14:50:18 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-06-07 14:50:18 -0400 |
commit | fd466889b49dfe528567587183c2aedd27836f27 (patch) | |
tree | 02802cd3785b46a627530427d0e8774742754a7a /src/stdio/freopen.c | |
parent | c195cb021ead7de765a0b37f5ab793802be46731 (diff) |
split formatted I/O header, unify undefined behavior reporting with UNDEFINED_FMT() macro
Diffstat (limited to 'src/stdio/freopen.c')
-rw-r--r-- | src/stdio/freopen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdio/freopen.c b/src/stdio/freopen.c index 60394ca6..941ffb9b 100644 --- a/src/stdio/freopen.c +++ b/src/stdio/freopen.c @@ -82,8 +82,8 @@ FILE * freopen(const char * restrict filename, const char * restrict mode, FILE stream->buf = stream->ibuf; } - free(stream->valid_fpos); - stream->nvalid_fpos = 0; + free(stream->fpos); + stream->nfpos = 0; free(stream->valid_ftell); stream->nvalid_ftell = 0; |