nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 9956e530d035230a1271c28c079dfb53d2a5ea2e
parent 7ffc01f00cffa87e03de04daa8c3da8c2ea84a0e
Author: Chris Allegretta <chrisa@asty.org>
Date:   Sun, 26 Nov 2000 02:09:53 +0000

Make nano at least not crash on weird binary data


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@326 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Mfiles.c | 2+-
Mpo/nano.pot | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/files.c b/files.c @@ -179,7 +179,7 @@ int read_file(int fd, char *filename) buf[0] = 0; } /* Did we even GET a file? */ - if (totsize == 0) { + if (totsize == 0 || fileptr == NULL) { new_file(); statusbar(_("Read %d lines"), num_lines); return 1; diff --git a/po/nano.pot b/po/nano.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-11-25 15:18-0500\n" +"POT-Creation-Date: 2000-11-25 21:08-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n"