texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/Texinfo/XS/main/errors.c (message_list_line_


From: Gavin D. Smith
Subject: branch master updated: * tp/Texinfo/XS/main/errors.c (message_list_line_error_internal): Use "%s" to print a string with fprintf in case the string contains conversion specifications.
Date: Wed, 25 Oct 2023 06:38:22 -0400

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 7f850f3cc1 * tp/Texinfo/XS/main/errors.c 
(message_list_line_error_internal): Use "%s" to print a string with fprintf in 
case the string contains conversion specifications.
7f850f3cc1 is described below

commit 7f850f3cc1ecfcdcf3b8602fb820099370c14332
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Wed Oct 25 11:38:14 2023 +0100

    * tp/Texinfo/XS/main/errors.c (message_list_line_error_internal):
    Use "%s" to print a string with fprintf in case the string contains
    conversion specifications.
---
 ChangeLog                   | 6 ++++++
 tp/Texinfo/XS/main/errors.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index c02057f6cd..6d0c7fbce1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-10-25  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/XS/main/errors.c (message_list_line_error_internal):
+       Use "%s" to print a string with fprintf in case the string contains
+       conversion specifications.
+
 2023-10-26  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Common.pm (import, copy_treeNonXS, copy_contentsNonXS),
diff --git a/tp/Texinfo/XS/main/errors.c b/tp/Texinfo/XS/main/errors.c
index 72f8bd0f65..66b5e8bacf 100644
--- a/tp/Texinfo/XS/main/errors.c
+++ b/tp/Texinfo/XS/main/errors.c
@@ -136,7 +136,7 @@ message_list_line_error_internal (ERROR_MESSAGE_LIST 
*error_messages,
   error_message->error_line = error_line.text;
 
   if (debug_output)
-    fprintf (stderr, error_message->error_line);
+    fprintf (stderr, "%s", error_message->error_line);
 }
 
 static void



reply via email to

[Prev in Thread] Current Thread [Next in Thread]