<<< Date Index >>>     <<< Thread Index >>>

Re: Length of regex/pattern for "color"



parv <parv_fm@xxxxxxxxxxx>:

> My question is how should i increase the allowable length of
> a pattern?  Is it even sane thing to do?

I think this patch does it.

Perhaps someone should go through mutt and get rid of all fixed-length
buffers ...


Index: color.c
===================================================================
RCS file: /home/roessler/cvs/mutt/color.c,v
retrieving revision 3.3
diff -u -r3.3 color.c
--- color.c     8 Apr 2003 21:41:39 -0000       3.3
+++ color.c     21 Oct 2003 08:29:23 -0000
@@ -511,7 +511,7 @@
   else
   {
     int r;
-    char buf[STRING];
+    char buf[LONG_STRING];
 
     tmp = mutt_new_color_line ();
     if (is_index)