X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=notmuch-search.c;h=0262eb30a1f96829141b4fd6cc7b20ecf141ff2e;hb=6d0a17c46ec112f99ebeefc9619dd9586fceaa46;hp=91b5d10596dc987cd8b3bafb18dadb17f57a7384;hpb=957fc2e1a7d00636c7eaaf487edae65e7a63dc8f;p=notmuch diff --git a/notmuch-search.c b/notmuch-search.c index 91b5d105..0262eb30 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -41,7 +41,9 @@ sanitize_string (const void *ctx, const char *str) loop = out = talloc_strdup (ctx, str); for (; *loop; loop++) { - if ((unsigned char)(*loop) < 32) + if (*loop == '\t' || *loop == '\n') + *loop = ' '; + else if ((unsigned char)(*loop) < 32) *loop = '?'; } return out;