summaryrefslogtreecommitdiff
path: root/pcreposix.c
diff options
context:
space:
mode:
authornigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-02-24 21:38:25 +0000
committernigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-02-24 21:38:25 +0000
commit5b147ef568d14b173955c93d7cc4137703d7ac0a (patch)
treef53a59b1bac518b16e3219d79d4db9e0bc70bc34 /pcreposix.c
parent67741e1934bcbb6e8ceb2a75a5c6f7f14ae28438 (diff)
downloadpcre-5b147ef568d14b173955c93d7cc4137703d7ac0a.tar.gz
Load pcre-1.06 into code/trunk.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@15 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcreposix.c')
-rw-r--r--pcreposix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcreposix.c b/pcreposix.c
index 00f9dc7..649399e 100644
--- a/pcreposix.c
+++ b/pcreposix.c
@@ -12,7 +12,7 @@ functions.
Written by: Philip Hazel <ph10@cam.ac.uk>
- Copyright (c) 1997 University of Cambridge
+ Copyright (c) 1998 University of Cambridge
-----------------------------------------------------------------------------
Permission is granted to anyone to use this software for any purpose on any
@@ -212,7 +212,7 @@ int options = 0;
if ((eflags & REG_NOTBOL) != 0) options |= PCRE_NOTBOL;
if ((eflags & REG_NOTEOL) != 0) options |= PCRE_NOTEOL;
-preg->re_erroffset = -1; /* Only has meaning after compile */
+preg->re_erroffset = (size_t)(-1); /* Only has meaning after compile */
rc = pcre_exec(preg->re_pcre, NULL, string, (int)strlen(string), options,
(int *)pmatch, nmatch * 2);