diff src/fileio.c @ 6898:a52a5141fecb

(Finsert_file_contents): Fix test for unchanged file.
author Richard M. Stallman <rms@gnu.org>
date Fri, 15 Apr 1994 22:26:34 +0000
parents 653504b6b5dd
children f67c02c50e2a
line wrap: on
line diff
--- a/src/fileio.c	Fri Apr 15 22:05:41 1994 +0000
+++ b/src/fileio.c	Fri Apr 15 22:26:34 1994 +0000
@@ -2670,7 +2670,7 @@
       immediate_quit = 0;
       /* If the file matches the buffer completely,
 	 there's no need to replace anything.  */
-      if (same_at_start == ZV)
+      if (same_at_start == st.st_size)
 	{
 	  close (fd);
 	  specpdl_ptr--;