/[anubis]/anubis/src/regex.c
ViewVC logotype

Diff of /anubis/src/regex.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by gray, Thu Feb 6 23:00:59 2003 UTC revision 1.5 by gray, Sat Feb 8 11:04:47 2003 UTC
# Line 110  _perl_match(pcre *re, char *line, int *r Line 110  _perl_match(pcre *re, char *line, int *r
110    
111          /* According to pcre docs: */          /* According to pcre docs: */
112          ovsize = (count + 1) * 3;          ovsize = (count + 1) * 3;
113          ovector = xmalloc(count * sizeof(*ovector));          ovector = xmalloc(ovsize * sizeof(*ovector));
114                    
115          rc = pcre_exec(re, 0, line, strlen(line), 0, 0,          rc = pcre_exec(re, 0, line, strlen(line), 0, 0,
116                         ovector, ovsize);                         ovector, ovsize);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26