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

13 lines
401 B
Plaintext

$OpenBSD: patch-io_c,v 1.4 2008/02/11 21:51:32 naddy Exp $
--- io.c.orig Fri Dec 19 10:58:20 2003
+++ io.c Thu Jan 24 20:21:25 2008
@@ -159,7 +159,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");