openbsd-ports/editors/bvi/patches/patch-io_c

13 lines
401 B
Plaintext
Raw Normal View History

2002-02-18 19:12:29 -05:00
$OpenBSD: patch-io_c,v 1.3 2002/02/19 00:12:29 naddy Exp $
--- io.c.orig Tue Feb 19 00:15:59 2002
+++ io.c Tue Feb 19 00:16:18 2002
@@ -158,7 +158,7 @@ load(fname)
filemode = ERROR;
}
} else if (S_ISREG(buf.st_mode)) {
- if ((unsigned long)buf.st_size > (unsigned long)SIZE_T_MAX) {
+ if (buf.st_size > SIZE_T_MAX) {
move(maxy, 0);
endwin();
printf("File too large\n");