In a few places we were passing a constructed string to a printf-like
function as its format argument. This could have been problematic if
the constructed string had contained a % (for example due to that
character occuring in a variable label). This change avoids those
situations.
xmlFreeTextReader (r->xtr);
if ( ! ds_is_empty (&r->ods_errs))
- msg (ME, ds_cstr (&r->ods_errs));
+ msg (ME, "%s", ds_cstr (&r->ods_errs));
ds_destroy (&r->ods_errs);
ds_put_cstr (&pair_name, " & ");
ds_put_cstr (&pair_name, var_to_string ((*vp)[1]));
- tab_title (table, ds_cstr (&pair_name));
+ tab_title (table, "%s", ds_cstr (&pair_name));
ds_destroy (&pair_name);