summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2017-10-18 04:40:43 -0400
committerTim Harder <radhermit@gentoo.org>2017-10-18 04:42:45 -0400
commitea905e49c90535186113a740193bcbc6eb8ce415 (patch)
tree7638b493b78af52526e28bf5813ac1076e75976f /mail-client/nmh/files
parentnet-mail/dovecot: bump to 2.2.33.1 (diff)
downloadgentoo-ea905e49c90535186113a740193bcbc6eb8ce415.tar.gz
gentoo-ea905e49c90535186113a740193bcbc6eb8ce415.tar.bz2
gentoo-ea905e49c90535186113a740193bcbc6eb8ce415.zip
mail-client/nmh: version bump to 1.6
Closes: https://bugs.gentoo.org/423681 Closes: https://bugs.gentoo.org/555550 Closes: https://bugs.gentoo.org/631662
Diffstat (limited to 'mail-client/nmh/files')
-rw-r--r--mail-client/nmh/files/nmh-1.6-m_getfld.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail-client/nmh/files/nmh-1.6-m_getfld.patch b/mail-client/nmh/files/nmh-1.6-m_getfld.patch
new file mode 100644
index 000000000000..36f207796646
--- /dev/null
+++ b/mail-client/nmh/files/nmh-1.6-m_getfld.patch
@@ -0,0 +1,25 @@
+--- nmh-1.6/sbr/m_getfld.c
++++ nmh-1.6/sbr/m_getfld.c
+@@ -919,16 +919,16 @@
+ register char *ep = pat + patln;
+ register char pc = *pat++;
+
+- for(;;) {
+- while (pc != *str++)
+- if (str > es)
+- return 0;
++ for(; str <= es; str++) {
++ if (pc != *str)
++ continue;
+ if (str > es+1)
+ return 0;
+- sp = str; pp = pat;
++ sp = str+1; pp = pat;
+ while (pp < ep && *sp++ == *pp)
+ pp++;
+ if (pp >= ep)
+- return --str;
++ return ((unsigned char *)str);
+ }
++ return 0;
+ }