[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] patch for multibuffer/view segfault
From: |
David Lawrence Ramsey |
Subject: |
[Nano-devel] patch for multibuffer/view segfault |
Date: |
Fri, 31 Jan 2003 10:34:35 -0800 (PST) |
This patch fixes a potential segfault that occurs when using
multibuffer mode and view mode together, which used to be described on
DB's nano patches page. To reproduce:
1. Open a file in multibuffer and view mode on the command line. [nano
-F -v file1.txt]
2. Read in a second file. [^R, file2.txt]
3. Close the second file. [^X]
4. Segfault.
It was, unfortunately, due to the last tweak I did to add_open_file()
(the "minor logic error" listed in the Changelog entry). The code
didn't do exactly what the comment described, so I changed the code to
match it; it turns out that I should have changed the comment instead to
match the original code (which this patch does; I hope that doesn't
fall under cosmetic changes).
http://pooka_regent.tripod.com/patches/nano/nanombview-patch.txt
_____________________________________________________________
Sluggy.Net: The Sluggy Freelance Community!
_____________________________________________________________
Select your own custom email address for FREE! Get address@hidden w/No Ads,
6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nano-devel] patch for multibuffer/view segfault,
David Lawrence Ramsey <=