diff options
author | Karl Williamson <khw@khw-desktop.(none)> | 2010-01-14 16:02:14 -0700 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2010-05-29 10:40:17 -0500 |
commit | 525aa6214fa98872c8e7604a6b63bd6c7914f3a4 (patch) | |
tree | 6a8986c7a7a2e01e57539568254d7d0203631cf5 | |
parent | 22c985d500f518cdb601db921ea5b3edaa6c4ae6 (diff) | |
download | perl-525aa6214fa98872c8e7604a6b63bd6c7914f3a4.tar.gz |
Use sizeof instead of hard-coded array size
The array should be declared with its actual size.
-rw-r--r-- | universal.c | 2 |
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 ) { /* |