public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-7577] libstdc++: Fix fwrite error parameter
@ 2023-07-18 11:00 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-07-18 11:00 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:c9da749155fef64777e186558cbdd5d5c7e7d474

commit r13-7577-gc9da749155fef64777e186558cbdd5d5c7e7d474
Author: Tianqiang Shuai <1101282468@qq.com>
Date:   Wed Jul 5 17:07:51 2023 +0100

    libstdc++: Fix fwrite error parameter
    
    The first parameter of fwrite should be the const char* __s which want
    write to FILE *__file, rather than the FILE *__file write to the FILE
    *__file.
    
    libstdc++-v3/ChangeLog:
    
            * config/io/basic_file_stdio.cc (xwrite) [USE_STDIO_PURE]: Fix
            first argument.
    
    (cherry picked from commit bb4f8f14ed15310b5e01f1c6013585550debdab9)

Diff:
---
 libstdc++-v3/config/io/basic_file_stdio.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/config/io/basic_file_stdio.cc b/libstdc++-v3/config/io/basic_file_stdio.cc
index 5501fbdd695..7de9d98c3c7 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-18 11:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-18 11:00 [gcc r13-7577] libstdc++: Fix fwrite error parameter Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).