summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2010-01-14 16:02:14 -0700
committerCraig A. Berry <craigberry@mac.com>2010-05-29 10:40:17 -0500
commit525aa6214fa98872c8e7604a6b63bd6c7914f3a4 (patch)
tree6a8986c7a7a2e01e57539568254d7d0203631cf5
parent22c985d500f518cdb601db921ea5b3edaa6c4ae6 (diff)
downloadperl-525aa6214fa98872c8e7604a6b63bd6c7914f3a4.tar.gz
Use sizeof instead of hard-coded array size
The array should be declared with its actual size.
-rw-r--r--universal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/universal.c b/universal.c
index 27783acd16..dec85058e6 100644
--- 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 ) {
/*