13 lines
401 B
Plaintext
13 lines
401 B
Plaintext
|
$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");
|