diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 69c1446b25d..0b06e4fee34 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3686,8 +3686,11 @@ actually used. */) | |||
| 3686 | record_unwind_protect (close_file_unwind, make_number (fd)); | 3686 | record_unwind_protect (close_file_unwind, make_number (fd)); |
| 3687 | 3687 | ||
| 3688 | /* Supposedly happens on VMS. */ | 3688 | /* Supposedly happens on VMS. */ |
| 3689 | /* Can happen on any platform that uses long as type of off_t, but allows | ||
| 3690 | file sizes to exceed 2Gb. VMS is no longer officially supported, so | ||
| 3691 | give a message suitable for the latter case. */ | ||
| 3689 | if (! not_regular && st.st_size < 0) | 3692 | if (! not_regular && st.st_size < 0) |
| 3690 | error ("File size is negative"); | 3693 | error ("Maximum buffer size exceeded"); |
| 3691 | 3694 | ||
| 3692 | /* Prevent redisplay optimizations. */ | 3695 | /* Prevent redisplay optimizations. */ |
| 3693 | current_buffer->clip_changed = 1; | 3696 | current_buffer->clip_changed = 1; |