From: Ben Pfaff Date: Tue, 25 Oct 2005 04:35:57 +0000 (+0000) Subject: * groff-font.c (font_msg): Use err_vmsg() instead of incorrectly X-Git-Tag: sav-api~2183 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0e5d040f8bf65800992dcd00f84eca308e90ab4;p=pspp * 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. --- diff --git a/src/ChangeLog b/src/ChangeLog index 1ba566d1a0..172aa5cda0 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 a46559cab1..e5811ef40d 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;