This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6a6417
)
s/printf/my_printf/ because we're using the return value.
author
Nicholas Clark
<nick@ccl4.org>
Fri, 4 Nov 2005 22:50:22 +0000
(22:50 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Fri, 4 Nov 2005 22:50:22 +0000
(22:50 +0000)
My mistake spotted by Gisle.
p4raw-id: //depot/perl@26006
regcomp.c
patch
|
blob
|
blame
|
history
diff --git
a/regcomp.c
b/regcomp.c
index
d288eb0
..
dd2188f
100644
(file)
--- a/
regcomp.c
+++ b/
regcomp.c
@@
-6218,7
+6218,7
@@
Perl_save_re_context(pTHX)
for (i = 1; i <= rx->nparens; i++) {
GV *mgv;
char digits[TYPE_CHARS(long)];
- const STRLEN len = sprintf(digits, "%lu", (long)i);
+ const STRLEN len =
my_
sprintf(digits, "%lu", (long)i);
if ((mgv = gv_fetchpvn_flags(digits, len, FALSE, SVt_PV)))
save_scalar(mgv);
}