Commit 9956e530 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
parent 7ffc01f0
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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;
......
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment