changeset 70578:e963ced8a1ca

(Finsert_file_contents): Fix for the case of IO error while handling replace operation.
author Kenichi Handa <handa@m17n.org>
date Thu, 11 May 2006 04:13:05 +0000
parents bee281cd9295
children 7327dd4cea67
files src/fileio.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Thu May 11 00:59:41 2006 +0000
+++ b/src/fileio.c	Thu May 11 04:13:05 2006 +0000
@@ -4325,11 +4325,8 @@
 	{
 	  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