summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-04-15 22:26:34 +0000
committerRichard M. Stallman <rms@gnu.org>1994-04-15 22:26:34 +0000
commite846c982e69c20a63478d35f735b9f37303d5c44 (patch)
treeba18057e85ee37ad8c25370dbf09a39ad7adf012 /src/fileio.c
parent7cdedc3fad55ed7f30f0a168b6abc6b524641039 (diff)
downloademacs-e846c982e69c20a63478d35f735b9f37303d5c44.tar.gz
(Finsert_file_contents): Fix test for unchanged file.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index cda88070d4a..ba509f0ebec 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2670,7 +2670,7 @@ and (2) it puts less data in the undo list.")
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--;