diff options
author | tonio <tonio@pkgsrc.org> | 2006-06-20 14:08:05 +0000 |
---|---|---|
committer | tonio <tonio@pkgsrc.org> | 2006-06-20 14:08:05 +0000 |
commit | cf3196bb17f1c78de9ae0f8924dd2fad21139673 (patch) | |
tree | 0bd8881503c1271244ffe91df698fc0e1645a4b4 /mail/mutt-devel | |
parent | f6b166b53e13ee525ba3b77267cfc2bdcf2b7dbb (diff) | |
download | pkgsrc-cf3196bb17f1c78de9ae0f8924dd2fad21139673.tar.gz |
The patch for imap/browse
Diffstat (limited to 'mail/mutt-devel')
-rw-r--r-- | mail/mutt-devel/patches/patch-ae | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mail/mutt-devel/patches/patch-ae b/mail/mutt-devel/patches/patch-ae new file mode 100644 index 00000000000..0520af00aec --- /dev/null +++ b/mail/mutt-devel/patches/patch-ae @@ -0,0 +1,29 @@ +$NetBSD: patch-ae,v 1.5 2006/06/20 14:08:05 tonio Exp $ + +--- imap/browse.c.orig 2002-02-26 10:38:56.000000000 +0000 ++++ imap/browse.c 2006-06-20 10:05:32.000000000 +0100 +@@ -452,7 +452,7 @@ + if (*s == '\"') + { + s++; +- while (*s && *s != '\"') ++ while (*s && *s != '\"' && n < sizeof (ns) - 1) + { + if (*s == '\\') + s++; +@@ -463,12 +463,14 @@ + s++; + } + else +- while (*s && !ISSPACE (*s)) ++ while (*s && !ISSPACE (*s) && n < sizeof (ns) - 1) + { + ns[n++] = *s; + s++; + } + ns[n] = '\0'; ++ if (n == sizeof (ns) - 1) ++ dprint (1, (debugfile, "browse_get_namespace: too long: [%s]\n", ns)); + /* delim? */ + s = imap_next_word (s); + /* delimiter is meaningless if namespace is "". Why does |