changeset 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 a4ce1a6d7423
children 45751abc406f
files src/fileio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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--;