From a0e5d040f8bf65800992dcd00f84eca308e90ab4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 25 Oct 2005 04:35:57 +0000 Subject: [PATCH] * groff-font.c (font_msg): Use err_vmsg() instead of incorrectly trying to pass a va_list to tmsg(). Thanks to Jason Stover for reporting this bug. --- src/ChangeLog | 6 ++++++ src/groff-font.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 1ba566d1..172aa5cd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 24 21:35:08 2005 Ben Pfaff + + * groff-font.c (font_msg): Use err_vmsg() instead of incorrectly + trying to pass a va_list to tmsg(). Thanks to Jason Stover for + reporting this bug. + Mon Oct 24 21:24:15 2005 Ben Pfaff Work to get rid of GCC 4.0 warnings, part 2. diff --git a/src/groff-font.c b/src/groff-font.c index a46559ca..e5811ef4 100644 --- a/src/groff-font.c +++ b/src/groff-font.c @@ -392,10 +392,15 @@ lose: static int font_msg (int class, const char *format,...) { + struct error error; va_list args; + error.class = class; + err_location (&error.where); + error.title = _("installation error: Groff font error: "); + va_start (args, format); - tmsg (class, format, args, _("installation error: Groff font error: ")); + err_vmsg (&error, format, args); va_end (args); return 0; -- 2.30.2