Skip Menu |

This queue is for tickets about the Comskil-JIRA CPAN distribution.

Report information
The Basics
Id: 73644
Status: new
Priority: 0/
Queue: Comskil-JIRA

People
Owner: Nobody in particular
Requestors: 'spro^^*%*^6ut# [...] &$%*c
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.)