This patch should fix the bug.

--
   Alexander.
Index: OutputJob.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/OutputJob.cc,v
retrieving revision 1.21
diff -u -p -r1.21 OutputJob.cc
--- OutputJob.cc        22 May 2008 13:20:37 -0000      1.21
+++ OutputJob.cc        11 Nov 2008 11:05:04 -0000
@@ -329,7 +329,10 @@ void OutputJob::PreFilter(const char *ne
    if(!filter)
       filter.set(newfilter);
    else
-      filter.vset(newfilter," | ",filter.get(),NULL);
+   {
+      char *old_filter=alloca_strdup(filter);
+      filter.vset(newfilter," | ",old_filter,NULL);
+   }
 }
 
 /* Return the width of the output.  If there's a filter, we can either

Reply via email to