[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Fri, 27 Oct 2023 15:36:58 -0400 (EDT) |
branch: master
commit b81328d261a8011c06875a3c56937c4780fb386e
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Oct 27 20:36:28 2023 +0100
* tp/Texinfo/XS/main/build_perl_info.c (build_perl_array):
Use "%s" for printing a string with fprintf.
---
ChangeLog | 5 +++++
tp/Texinfo/XS/main/build_perl_info.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 74bbe368b5..2ba7aad2d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-10-27 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/XS/main/build_perl_info.c (build_perl_array):
+ Use "%s" for printing a string with fprintf.
+
2023-10-27 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Text.pm (convert_to_text): Change cluck
diff --git a/tp/Texinfo/XS/main/build_perl_info.c
b/tp/Texinfo/XS/main/build_perl_info.c
index 8da67d8b9a..4fabb66d68 100644
--- a/tp/Texinfo/XS/main/build_perl_info.c
+++ b/tp/Texinfo/XS/main/build_perl_info.c
@@ -145,7 +145,7 @@ build_perl_array (ELEMENT_LIST *e)
text_printf (&message,
"BUG: build_perl_array oot %d: %s\n", i, debug_str);
free (debug_str);
- fprintf (stderr, message.text);
+ fprintf (stderr, "%s", message.text);
free (message.text);
/* Out-of-tree element */
/* WARNING: This is possibly recursive. */
@@ -188,7 +188,7 @@ build_perl_directions (ELEMENT_LIST *e)
text_printf (&message,
"BUG: build_perl_directions oot %s: %s\n", key, debug_str);
free (debug_str);
- fprintf (stderr, message.text);
+ fprintf (stderr, "%s", message.text);
free (message.text);
/* Out-of-tree element */
/* WARNING: This is possibly recursive. */