Indeed this bug is there!
Thanks for reporting it.

Fixed it with the patch below.
Will be released somewhere this week.
Testing is welcome!

Index: term.c
===================================================================
--- term.c      (revision 2)
+++ term.c      (working copy)
@@ -432,7 +432,7 @@
                        dummy[min(strlen(dummy), line_width)] = 0x00;
                        for(loop=strlen(dummy); loop<line_width; loop++)
                                mvwprintw(win -> win, win_y, win_x + loop, " ");
-                       mvwprintw(win -> win, win_y, win_x, dummy);
+                       mvwprintw(win -> win, win_y, win_x, "%s", dummy);
                        myfree(dummy);
                        if (pcase_insensitive)
                                mvwprintw(win -> win, win_y + 1, win_x, "%c", 
*pcase_insensitive?'X':' ');
Index: ui.c
===================================================================
--- ui.c        (revision 2)
+++ ui.c        (working copy)
@@ -50,7 +50,7 @@
 
        win_header(mywin, title);
        myattr_on(mywin, cdev);
-       mvwprintw(mywin -> win, 3, 2, buffer);
+       mvwprintw(mywin -> win, 3, 2, "%s", buffer);
        myattr_off(mywin, cdev);
        escape_print(mywin, 7, 2, "_Press any key to exit this screen_");
        mydoupdate();
Index: version
===================================================================
--- version     (revision 2)
+++ version     (working copy)
@@ -1 +1 @@
-VERSION=5.2.8
+VERSION=5.2.9


On Sat, Dec 24, 2011 at 01:53:27PM +0100, Christoph Biedl wrote:
> Package: multitail
> Version: 5.2.8-1
> Severity: important
> 
> Hello,
> 
> that's a bit a nuissance ...
> 
> How to repeat:
> 
> * Start multitail against an arbitrary file.
> * Do a forward search or highlight, i.e. "/" or "?".
> * In the small window, enter "%", then "n".
> 
> Output (right across the terminal):
> 
>     *** %n in writable segment detected ***
>     Aborted
> 
> syslog:
>     segfault at 1 ip 00000000f7646a59 sp 00000000ff9a549c error 6 in 
> libc-2.11.2.so[f7606000+13e000
> 
> The problem exists in squeeze, too. I did not check what %n is
> supposed to do, but I doubt this is the desired behaviour.
> 
> Regards,
> 
>     Christoph
> 
> -- System Information:
> Debian Release: wheezy/sid
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 3.1.6 (SMP w/4 CPU cores; PREEMPT)
> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages multitail depends on:
> ii  libc6        2.13-21
> ii  libncurses5  5.9-4
> 
> multitail recommends no packages.
> 
> multitail suggests no packages.
> 
> -- Configuration Files:
> /etc/multitail.conf changed [not included]
> 
> Note: That's just "check_mail:0".
> 
> -- no debconf information
> 
> 


Folkert van Heusden

-- 
www.vanheusden.com/multitail - multitail is tail on steroids. multiple
               windows, filtering, coloring, anything you can think of
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to