summaryrefslogtreecommitdiff
path: root/src/pcre2_match_data.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2017-05-11 16:49:58 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2017-05-11 16:49:58 +0000
commit89c86560874a8cfa422be7d2b22d18ed6e20635e (patch)
tree028f9ae6692ee1e43498f2c8bd26cf7455671e80 /src/pcre2_match_data.c
parent25aebdd07fb4de49d00d037586fb1770177662cc (diff)
downloadpcre2-89c86560874a8cfa422be7d2b22d18ed6e20635e.tar.gz
More refactoring for ovector addressing.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@780 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_match_data.c')
-rw-r--r--src/pcre2_match_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcre2_match_data.c b/src/pcre2_match_data.c
index 4dd9668..b297f32 100644
--- a/src/pcre2_match_data.c
+++ b/src/pcre2_match_data.c
@@ -59,7 +59,7 @@ pcre2_match_data_create(uint32_t oveccount, pcre2_general_context *gcontext)
pcre2_match_data *yield;
if (oveccount < 1) oveccount = 1;
yield = PRIV(memctl_malloc)(
- sizeof(pcre2_match_data) + 2*oveccount*sizeof(PCRE2_SIZE),
+ offsetof(pcre2_match_data, ovector) + 2*oveccount*sizeof(PCRE2_SIZE),
(pcre2_memctl *)gcontext);
if (yield == NULL) return NULL;
yield->oveccount = oveccount;