ds_printf (&text, _(", field type %s) "), fmt_to_string (&i->format));
ds_vprintf (&text, format, args);
ds_printf (&text, _(", field type %s) "), fmt_to_string (&i->format));
ds_vprintf (&text, format, args);
- e.category = MSG_DATA;
- e.severity = MSG_ERROR;
- err_location (&e.where);
- e.text = ds_c_str (&text);
+ m.category = MSG_DATA;
+ m.severity = MSG_ERROR;
+ msg_location (&m.where);
+ m.text = ds_c_str (&text);
- buf_copy_rpad (i->v->s, i->format.w, i->s, i->e - i->s);
+ const int bytes = width_to_bytes(i->format.w);
+
+ copy_mangle (i->v->s, bytes, i->s, i->e - i->s);
+