From: Ben Pfaff Date: Wed, 27 Apr 2011 04:53:26 +0000 (-0700) Subject: FACTOR: Use %s for literal string. X-Git-Tag: v0.7.8~24 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94ad1a452b85d07aa9d27b33607ec11efa3a2492;p=pspp-builds.git FACTOR: Use %s for literal string. tab_title() treats its parameter as a printf format string, so it's necessary to use %s. Found on Mac OS X with help from Jeremy Lavergne. --- diff --git a/src/language/stats/factor.c b/src/language/stats/factor.c index d1a35a87..a9c948e6 100644 --- a/src/language/stats/factor.c +++ b/src/language/stats/factor.c @@ -1297,7 +1297,7 @@ show_factor_matrix (const struct cmd_factor *factor, struct idata *idata, const tab_title (t, _("Factor Matrix")); */ - tab_title (t, title); + tab_title (t, "%s", title); tab_headers (t, heading_columns, 0, heading_rows, 0);