Sat Apr 17 13:04:19 1999 Norbert Warmuth <nwarmuth@privat.circular.de>

* src/view.c (do_view_init): Enable viewing of files with negative
st_size (This reverts part of a patch I commited recently. Miguel
provided a better fix for this issue).
This commit is contained in:
Norbert Warmuth 1999-04-17 11:05:17 +00:00
parent 2c66e8180a
commit e57222fe39
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Sat Apr 17 13:04:19 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* view.c (do_view_init): Enable viewing of files with negative
st_size (This reverts parts of a patch I commited recently. Miguel
provided a better fix for this issue).
1999-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
* view.c (regexp_search): Use unsigned longs for all of the

View File

@ -575,11 +575,6 @@ do_view_init (WView *view, char *_command, char *_file, int start_line)
return -1;
}
if (view->s.st_size < 0) {
message (1, MSG_ERROR, _(" Can't open \"%s\"\n File too large (%d) "),
_file, view->s.st_size);
return -1;
}
if (_file[0] && view->viewer_magic_flag && (is_gunzipable (fd, &type)) != 0)
view->filename = g_strconcat (_file, decompress_extension(type), NULL);
else