(*) How to reproduce
  
Type a char in the input line, then C-k.
  
Core was generated by `./tirc'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7e4db4c in memcpy () from /lib/tls/i686/cmov/libc.so.6
(gdb) #0  0xb7e4db4c in memcpy () from /lib/tls/i686/cmov/libc.so.6
#1  0x08058958 in parsekey ()
#2  0x0805405f in doirc ()
#3  0x0804f089 in main ()
(gdb) 
  
(*) Patch
  
--- input.c     1998-10-19 19:26:31.000000000 -0400
+++ /tmp/input.c        2007-11-27 01:10:54.000000000 -0500
@@ -785,7 +785,7 @@
                        undolptr = lptr;
 
                        if (lsz) {
-                               cutsize = lsz-lptr-1;
+                               cutsize = lsz-lptr;
                                if (!yank) {
                                        memcpy(cutbuf, line+lptr, cutsize);
                                        if (lptr)
  
(*) Bugs
  
Do not take this patch as a correction; this patch is merely pointing
the problem out. Variables lsz and lptr are global and changed in
various places; did not bother to understand the software. Use it at
your own risk.

(*) Reference
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=178500



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to