diff src/fileio.c @ 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 b191186433c8
children d876c40c06dd b6689e223e2f a5812696f7bf
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