[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 06/13: src/roff/troff/reg.cpp: Fix Savannah #66293.
From: |
G. Branden Robinson |
Subject: |
[groff] 06/13: src/roff/troff/reg.cpp: Fix Savannah #66293. |
Date: |
Mon, 7 Oct 2024 08:00:14 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 0d928d3984177a951c2f8d2e7272662f4f578fea
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Oct 6 11:23:35 2024 -0500
src/roff/troff/reg.cpp: Fix Savannah #66293.
* src/roff/troff/reg.cpp (dump_register): Remove garbage from
`errprint()` format string.
Fixes <https://savannah.gnu.org/bugs/?66293>. Thanks to Bjarni Ingi
Gislason for the report.
---
ChangeLog | 8 ++++++++
src/roff/troff/reg.cpp | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 63a1fb07f..dfd8ec63c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-10-05 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/roff/troff/reg.cpp (dump_register): Remove garbage from
+ `errprint()` format string.
+
+ Fixes <https://savannah.gnu.org/bugs/?66293>. Thanks to Bjarni
+ Ingi Gislason for the report.
+
2024-10-04 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/preproc/tbl/table.cpp (table::init_output): Migrate to use
diff --git a/src/roff/troff/reg.cpp b/src/roff/troff/reg.cpp
index 7e46a82c7..752b4e82e 100644
--- a/src/roff/troff/reg.cpp
+++ b/src/roff/troff/reg.cpp
@@ -514,7 +514,7 @@ static void dump_register(symbol *id, reg *r)
const char *f = r->get_format();
assert(f != 0 /* nullptr */);
if (f != 0 /* nullptr*/)
- errprint("\t\%1", f);
+ errprint("\t%1", f);
}
else {
const char *s = r->get_string();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 06/13: src/roff/troff/reg.cpp: Fix Savannah #66293.,
G. Branden Robinson <=