diff --git a/libstdc++-v3/config/io/basic_file_stdio.cc b/libstdc++-v3/config/io/basic_file_stdio.cc index 09fdd750b80..f5aec04750f 100644 --- a/libstdc++-v3/config/io/basic_file_stdio.cc +++ b/libstdc++-v3/config/io/basic_file_stdio.cc @@ -128,7 +128,7 @@ namespace for (;;) { #ifdef _GLIBCXX_USE_STDIO_PURE - const std::streamsize __ret = fwrite(__file, 1, __nleft, __file); + const std::streamsize __ret = fwrite(__s, 1, __nleft, __file); #else const std::streamsize __ret = write(__fd, __s, __nleft); #endif