public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-7577] libstdc++: Fix fwrite error parameter Date: Tue, 18 Jul 2023 11:00:49 +0000 (GMT) [thread overview] Message-ID: <20230718110049.7C4A43857028@sourceware.org> (raw) 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
reply other threads:[~2023-07-18 11:00 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230718110049.7C4A43857028@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).