X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdata-in.c;h=462f85579a929b571714109c92e40515998742aa;hb=b74d09af5e07f954c18e7cdb8aca3af47fa10208;hp=4e2e8fcbfb867a249d4152386b21d4a293bc7f61;hpb=75862bc63003b33702bfd6844b8a4d1c632488b3;p=pspp-builds.git diff --git a/src/data/data-in.c b/src/data/data-in.c index 4e2e8fcb..462f8557 100644 --- a/src/data/data-in.c +++ b/src/data/data-in.c @@ -54,18 +54,18 @@ vdls_error (const struct data_in *i, const char *format, va_list args) if (i->flags & DI_IGNORE_ERROR) return; - ds_init (&text); + ds_init_empty (&text); if (i->f1 == i->f2) - ds_printf (&text, _("(column %d"), i->f1); + ds_put_format (&text, _("(column %d"), i->f1); else - ds_printf (&text, _("(columns %d-%d"), i->f1, i->f2); - ds_printf (&text, _(", field type %s) "), fmt_to_string (&i->format)); - ds_vprintf (&text, format, args); + ds_put_format (&text, _("(columns %d-%d"), i->f1, i->f2); + ds_put_format (&text, _(", field type %s) "), fmt_to_string (&i->format)); + ds_put_vformat (&text, format, args); m.category = MSG_DATA; m.severity = MSG_ERROR; msg_location (&m.where); - m.text = ds_c_str (&text); + m.text = ds_cstr (&text); msg_emit (&m); }