diff src/fileio.c @ 6194:b094b321b4a6

(Finsert_file_contents): Pass del_range_1 two ends, not a length.
author Richard M. Stallman <rms@gnu.org>
date Fri, 04 Mar 1994 04:19:14 +0000
parents dd271c6b4e56
children 2a8a76b9a2fe
line wrap: on
line diff
--- a/src/fileio.c	Fri Mar 04 04:03:46 1994 +0000
+++ b/src/fileio.c	Fri Mar 04 04:19:14 1994 +0000
@@ -2681,7 +2681,7 @@
       /* Arrange to read only the nonmatching middle part of the file.  */
       XFASTINT (beg) = same_at_start - BEGV;
       XFASTINT (end) = st.st_size - (ZV - same_at_end);
-      del_range_1 (same_at_start, same_at_end - same_at_start, 0);
+      del_range_1 (same_at_start, same_at_end, 0);
       /* Insert from the file at the proper position.  */
       SET_PT (same_at_start);
     }