projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
22c985d
)
Use sizeof instead of hard-coded array size
Karl Williamson [Thu, 14 Jan 2010 23:02:14 +0000 (16:02 -0700)]
The array should be declared with its actual size.
universal.c
patch
|
blob
|
blame
|
history
diff --git
a/universal.c
b/universal.c
index
27783ac
..
dec8505
100644
(file)
--- a/
universal.c
+++ b/
universal.c
@@
-1175,7
+1175,7
@@
XS(XS_re_regexp_pattern)
/* Houston, we have a regex! */
SV *pattern;
STRLEN left = 0;
- char reflags[6];
+ char reflags[sizeof(INT_PAT_MODS)];
if ( GIMME_V == G_ARRAY ) {
/*