pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/mutt-devel/patches The patch for imap/browse



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c3b874741a83
branches:  trunk
changeset: 514890:c3b874741a83
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Tue Jun 20 14:08:05 2006 +0000

description:
The patch for imap/browse

diffstat:

 mail/mutt-devel/patches/patch-ae |  29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diffs (33 lines):

diff -r edb5f5d78fd7 -r c3b874741a83 mail/mutt-devel/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mutt-devel/patches/patch-ae  Tue Jun 20 14:08:05 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index