if (conns == 0)
appendPQExpBuffer(&buf, _("No connections"));
else
- appendPQExpBuffer(&buf, ngettext("%d connection", "%d connections", conns), conns);
+ appendPQExpBuffer(&buf, ngettext("%d connection",
+ "%d connections",
+ conns),
+ conns);
}
attr[i] = pg_strdup(buf.data);
char default_footer[100];
total_records = opt->topt.prior_records + cont.nrows;
- snprintf(default_footer, 100, ngettext("(%lu row)", "(%lu rows)", total_records), total_records);
+ snprintf(default_footer, sizeof(default_footer),
+ ngettext("(%lu row)", "(%lu rows)", total_records),
+ total_records);
printTableAddFooter(&cont, default_footer);
}