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: v0.6.0~1175 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0e5d040f8bf65800992dcd00f84eca308e90ab4;p=pspp-builds.git * 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 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;