public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2370] libstdc++: Fix fwrite error parameter
@ 2023-07-06 20:42 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-07-06 20:42 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:bb4f8f14ed15310b5e01f1c6013585550debdab9
commit r14-2370-gbb4f8f14ed15310b5e01f1c6013585550debdab9
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.
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-06 20:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-06 20:42 [gcc r14-2370] 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).