Fix number in error message

svn:r5369
This commit is contained in:
Nick Mathewson 2005-11-14 19:17:28 +00:00
parent 4ea6d71a26
commit 669fdde91b

View file

@ -167,8 +167,8 @@ accounting_parse_options(or_options_t *options, int validate_only)
idx = unit==UNIT_DAY?1:2; idx = unit==UNIT_DAY?1:2;
if (smartlist_len(items) != (idx+1)) { if (smartlist_len(items) != (idx+1)) {
warn(LD_CONFIG,"Accounting unit '%s' requires %d arguments", warn(LD_CONFIG,"Accounting unit '%s' requires %d argument%s.",
s, idx+1); s, idx, (idx>1)?"s":"");
goto err; goto err;
} }
s = smartlist_get(items, idx); s = smartlist_get(items, idx);