diff options
author | rsc <devnull@localhost> | 2007-05-18 16:43:43 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-05-18 16:43:43 +0000 |
commit | da7f7882a2797fa3b6fbc9886e8a2144625739bb (patch) | |
tree | e53bea79defc5daf950676ac29587499367f2fa0 /src/libregexp/regexec.c | |
parent | d91ab9ea7b4c0587b4ac5bcbddf091a269bd9213 (diff) | |
download | plan9port-da7f7882a2797fa3b6fbc9886e8a2144625739bb.tar.gz plan9port-da7f7882a2797fa3b6fbc9886e8a2144625739bb.tar.bz2 plan9port-da7f7882a2797fa3b6fbc9886e8a2144625739bb.zip |
Match leading ^ in regexp with embedded newlines (Roger Peppe)
Diffstat (limited to 'src/libregexp/regexec.c')
-rw-r--r-- | src/libregexp/regexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libregexp/regexec.c b/src/libregexp/regexec.c index 62ab1a31..a00fbcbc 100644 --- a/src/libregexp/regexec.c +++ b/src/libregexp/regexec.c @@ -58,7 +58,7 @@ regexec1(Reprog *progp, /* program to run */ p = utfrune(s, '\n'); if(p == 0 || s == j->eol) return match; - s = p; + s = p+1; break; } } |