]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgfortran: Fix compilation of gf_vsnprintf
authorIan McInerney <i.mcinerney17@imperial.ac.uk>
Thu, 4 Apr 2024 15:16:32 +0000 (16:16 +0100)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 12 Apr 2024 11:52:10 +0000 (13:52 +0200)
commit3bd3ca05b519b99b5ea570c10fd80737cd4c6c49
treecc593d634ecb71adfda4f0fdce0d5fa38c70f60e
parent6e7e5943619a2c20d93fc7089c885483786558bc
libgfortran: Fix compilation of gf_vsnprintf

The fallback function (gf_vsnprintf) to provide a vsnprintf function
if the system library doesn't have one would not compile due to the
variable name for the string's destination buffer not being updated
after the refactor in 2018 in edaaef601d0d6d263fba87b42d6d04c99dd23dba.

This updates the internal logic of gf_vsnprintf to now use the str
variable defined in the function signature.

libgfortran/ChangeLog:

2024-04-04  Ian McInerney  <i.mcinerney17@imperial.ac.uk>

* runtime/error.c (gf_vsnprintf): Fix compilation

Signed-off-by: Ian McInerney <i.mcinerney17@imperial.ac.uk>
libgfortran/runtime/error.c