Re: [Patch v7 05/14] quote_and_decode_query: new function to quote hex-decoded queries

Subject: Re: [Patch v7 05/14] quote_and_decode_query: new function to quote hex-decoded queries

Date: Sat, 15 Dec 2012 23:39:42 -0400

To: Jani Nikula, notmuch@notmuchmail.org

Cc:

From: David Bremner


Jani Nikula <jani@nikula.org> writes:

> strtok_len() will eat all the leading delimiters at each call, and will
> not return a zero-length token if you have multiple consecutive
> delimiters. Which means you may end up losing stuff here.

Right, I think for ':' it does matter, but it should be fixable with a
a little loop to copy ':'s to the query string after the (possibly quoted)
token.

Thread: