aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2025-07-12 17:21:35 -0700
committerPaul Eggert2025-07-13 21:09:39 -0700
commit4c4f68be4b7506502c6a4b133b02bb34f097496d (patch)
treeb994d123ad725cbb7019e13f50fba995a17f01d0 /src
parent61a8ce0280668980a4452b112103c9bc879e1f49 (diff)
downloademacs-4c4f68be4b7506502c6a4b133b02bb34f097496d.tar.gz
emacs-4c4f68be4b7506502c6a4b133b02bb34f097496d.zip
insert-file-contents byte vs char confusion
* src/fileio.c (Finsert_file_contents): Use del_range_byte, not del_range_1, since we are passing byte counts, not character counts. Problem reported by Pip Cet (Bug#77315).
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index d7dd03db17e..70433f4d330 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4440,7 +4440,7 @@ by calling `format-decode', which see. */)
4440 clear_unwind_protect (fd_index); 4440 clear_unwind_protect (fd_index);
4441 4441
4442 /* Truncate the buffer to the size of the file. */ 4442 /* Truncate the buffer to the size of the file. */
4443 del_range_1 (same_at_start, same_at_end, 0, 0); 4443 del_range_byte (same_at_start, same_at_end);
4444 goto handled; 4444 goto handled;
4445 } 4445 }
4446 4446