diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-08-29 11:08:24 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-08-29 11:08:24 +0000 |
commit | daa458cc0a38fbb4b8ef52344531fd82ebf5dc0d (patch) | |
tree | 3f35058fb6b9f843045189e823e5f20987c53961 /pcreposix.c | |
parent | 36812ed2e3c52826535563f9177731656cf94563 (diff) | |
download | pcre-daa458cc0a38fbb4b8ef52344531fd82ebf5dc0d.tar.gz |
Fix re_nsub bug in the POSIX wrapper.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1024 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcreposix.c')
-rw-r--r-- | pcreposix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pcreposix.c b/pcreposix.c index 916deaf..1730d12 100644 --- a/pcreposix.c +++ b/pcreposix.c @@ -259,6 +259,7 @@ const char *errorptr; int erroffset; int errorcode; int options = 0; +int re_nsub = 0; if ((cflags & REG_ICASE) != 0) options |= PCRE_CASELESS; if ((cflags & REG_NEWLINE) != 0) options |= PCRE_MULTILINE; @@ -282,7 +283,8 @@ if (preg->re_pcre == NULL) } (void)pcre_fullinfo((const pcre *)preg->re_pcre, NULL, PCRE_INFO_CAPTURECOUNT, - &(preg->re_nsub)); + &re_nsub); +preg->re_nsub = (size_t)re_nsub; return 0; } |