Subject: | Misuse of %n sprintf format |
In http://cpansearch.perl.org/src/COMSKIL/Comskil-JIRA-00.11329/lib/Comskil/JWand.pm I
noticed this bit of code:
my $ilist = eval {
$self->{client_handle}->getIssuesFromJqlSearch($jql,$self->{':max_results'})
};
if ($@) {
carp sprintf("getIssuesFromJqlSearch('%s',%n): %s",$jql,$self->{':max_results'},$@);
last;
}
I think you are using %n when you mean %s, in that sprintf format. %n will set $self-
Show quoted text
>{':max_results'} to the number of characters leading up to the %n; i.e.,
length(sprintf("getIssuesFromJqlSearch('%s',",$jql)). (Due to a perl bug, it actually uses the
number of internal bytes used to store the string, rather than the actual number of
characters.)