Off-by-one bug

This commit is contained in:
acli 2004-02-23 04:36:56 +00:00
parent ae4bf41171
commit dda8e7d233
1 changed files with 5 additions and 1 deletions

View File

@ -664,7 +664,11 @@ sub parametrize ($$$) {
my($i, $width, $prec) = ((defined $1? $1: $n), $2, $3);
$fmt = $';
if (!defined $width && !defined $prec) {
$it .= $params->[$i]
my $param = $params->[$i - 1];
$it .= $param;
warn_normal "$&: Undefined parameter $i for msgid \"$fmt_0\"",
undef
unless defined $param;
} elsif (defined $width && defined $prec && !$width && !$prec) {
;
} else {