]> granicus.if.org Git - neomutt/commitdiff
mutt_str_startswith - rfc3676.c
authorPietro Cerutti <gahr@gahr.ch>
Fri, 9 Nov 2018 15:55:38 +0000 (15:55 +0000)
committerRichard Russon <rich@flatcap.org>
Wed, 14 Nov 2018 15:10:31 +0000 (15:10 +0000)
rfc3676.c

index 801b814a1140e0b5f103a4728bdd18a32a066840..9fc9fa356e76ec906cf59a226e32fcf91eef2f33 100644 (file)
--- a/rfc3676.c
+++ b/rfc3676.c
@@ -419,7 +419,7 @@ void rfc3676_space_stuff(struct Email *e)
 
   while (fgets(buf, sizeof(buf), in))
   {
-    if ((mutt_str_strncmp("From ", buf, 5) == 0) || buf[0] == ' ')
+    if (buf[0] == ' ' || mutt_str_startswith(buf, "From ", CASE_MATCH))
     {
       fputc(' ', out);
       lc++;