diff options
author | Kenichi Handa <handa@m17n.org> | 2006-05-11 04:13:33 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2006-05-11 04:13:33 +0000 |
commit | 17ad716ac4743dc7d46a0c5332129c17d91a9807 (patch) | |
tree | e98a62fbbbb635dc9834fe208e631631d62c3e04 /src/fileio.c | |
parent | e4c068c0634ea217e7389c3729101a2f1d09e0b3 (diff) | |
download | emacs-17ad716ac4743dc7d46a0c5332129c17d91a9807.tar.gz emacs-17ad716ac4743dc7d46a0c5332129c17d91a9807.tar.bz2 emacs-17ad716ac4743dc7d46a0c5332129c17d91a9807.zip |
(Finsert_file_contents): Fix for the case of IO error
while handling replace operation.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/fileio.c b/src/fileio.c index 422f9d8dfc9..12ce3c411e8 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4325,11 +4325,8 @@ actually used. */) { xfree (conversion_buffer); coding_free_composition_data (&coding); - if (how_much == -1) - error ("IO error reading %s: %s", - SDATA (orig_filename), emacs_strerror (errno)); - else if (how_much == -2) - error ("maximum buffer size exceeded"); + error ("IO error reading %s: %s", + SDATA (orig_filename), emacs_strerror (errno)); } /* Compare the beginning of the converted file |