From 17ad716ac4743dc7d46a0c5332129c17d91a9807 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 11 May 2006 04:13:33 +0000 Subject: [PATCH] (Finsert_file_contents): Fix for the case of IO error while handling replace operation. --- src/ChangeLog | 5 +++++ src/fileio.c | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index afaa1c3af67..8f27f48ba55 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-05-11 Kenichi Handa + + * fileio.c (Finsert_file_contents): Fix for the case of IO error + while handling replace operation. + 2006-05-10 Kenichi Handa * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font 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 -- 2.39.5