From: Eric Sunshine Date: Tue, 31 May 2016 20:19:39 GMT Subject: Re: [PATCH 1/3] pretty: support "mboxrd" output format Message-ID: In-Reply-To: On Tue, May 31, 2016 at 4:12 PM, Eric Sunshine wrote: > On reflection, even with the '^' anchor, it isn't safe the way it's > coded since '^' will match following a newline, won't it? Therefore, > because 'line' isn't necessarily NUL-terminated, the pattern could > match on some line beyond what get_one_line() considers the "current > line". I guess that behavior only kicks in if you specify REG_NEWLINE, which you didn't. > This makes the hand-coded is_mboxrd_from() even more attractive; plus > you can re-use it in patch 2.