From e69dcccbcb53b2c0f3fbe3f6c3e04aadae7e9265 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 18 May 2015 13:58:54 +0200 Subject: Avoid some aliasing violations in libio --- libio/freopen64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libio/freopen64.c') diff --git a/libio/freopen64.c b/libio/freopen64.c index 77c83cf..fc6ccb1 100644 --- a/libio/freopen64.c +++ b/libio/freopen64.c @@ -50,7 +50,7 @@ freopen64 (filename, mode, fp) ? fd_to_filename (fd) : filename); fp->_flags2 |= _IO_FLAGS2_NOCLOSE; _IO_file_close_it (fp); - _IO_JUMPS ((struct _IO_FILE_plus *) fp) = &_IO_file_jumps; + _IO_JUMPS_FILE_plus (fp) = &_IO_file_jumps; if (_IO_vtable_offset (fp) == 0 && fp->_wide_data != NULL) fp->_wide_data->_wide_vtable = &_IO_wfile_jumps; result = _IO_file_fopen (fp, gfilename, mode, 0); -- cgit v1.1