diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2017-03-09 16:23:28 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2017-03-09 16:23:28 +0000 |
commit | 80dd3f3b5573e625290bd398860792f4e0b19b5a (patch) | |
tree | 293ce0e41fe9e5063de21bbf0abdb8b7d69563d8 /src/pcre2_match_data.c | |
parent | be14c2f3f01dc2b6b574b3a86536ee8194945f7f (diff) | |
download | pcre2-80dd3f3b5573e625290bd398860792f4e0b19b5a.tar.gz |
Code for new interpreter (build system and documentation still to be done).
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@671 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_match_data.c')
-rw-r--r-- | src/pcre2_match_data.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcre2_match_data.c b/src/pcre2_match_data.c index 85ac998..4dd9668 100644 --- a/src/pcre2_match_data.c +++ b/src/pcre2_match_data.c @@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel Original API code Copyright (c) 1997-2012 University of Cambridge - New API code Copyright (c) 2016 University of Cambridge + New API code Copyright (c) 2016-2017 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -51,7 +51,7 @@ POSSIBILITY OF SUCH DAMAGE. * Create a match data block given ovector size * *************************************************/ -/* A minimum of 1 is imposed on the number of ovector triplets. */ +/* A minimum of 1 is imposed on the number of ovector pairs. */ PCRE2_EXP_DEFN pcre2_match_data * PCRE2_CALL_CONVENTION pcre2_match_data_create(uint32_t oveccount, pcre2_general_context *gcontext) @@ -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) + 3*oveccount*sizeof(PCRE2_SIZE), + sizeof(pcre2_match_data) + 2*oveccount*sizeof(PCRE2_SIZE), (pcre2_memctl *)gcontext); if (yield == NULL) return NULL; yield->oveccount = oveccount; |