]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - libio/freopen.c
libio: freopen of default streams crashes in old programs [BZ #24632]
[thirdparty/glibc.git] / libio / freopen.c
index 17b00258cd838fe59df6473103e021cc2d103223..82e39f5028d94ce5c7e257b008a429b10b16412d 100644 (file)
@@ -62,7 +62,7 @@ freopen (const char *filename, const char *mode, FILE *fp)
         to the old libio may be passed into shared C library and wind
         up here. */
       _IO_old_file_close_it (fp);
-      _IO_JUMPS_FILE_plus (fp) = &_IO_old_file_jumps;
+      _IO_JUMPS_FUNC_UPDATE (fp, &_IO_old_file_jumps);
       result = _IO_old_file_fopen (fp, gfilename, mode);
     }
   else