Ticket #427: patch-io.c
File patch-io.c, 330 bytes (added by mtn88 (Max), 22 years ago) |
---|
Line | |
---|---|
1 | --- io.c.orig Mon Jan 6 04:31:45 2003 |
2 | +++ io.c Mon Jan 6 04:32:23 2003 |
3 | @@ -158,7 +158,7 @@ |
4 | filemode = ERROR; |
5 | } |
6 | } else if (S_ISREG(buf.st_mode)) { |
7 | - if ((unsigned long)buf.st_size > (unsigned long)SIZE_T_MAX) { |
8 | + if (buf.st_size > SIZE_T_MAX) { |
9 | move(maxy, 0); |
10 | endwin(); |
11 | printf("File too large\n"); |