]> git.eshelyaron.com Git - emacs.git/commit
insert-file-contents small gap bug
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Jul 2025 18:38:20 +0000 (11:38 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 11:53:22 +0000 (13:53 +0200)
commit120f850dfec233b5f8f22212325520d500c5dcc3
treeb1002b7e3dfa69098d42d7f58919f10d5b1ac626
parentb5314aa9ce6eb73dbd06b844764c4adab99408fb
insert-file-contents small gap bug

Problem reported by Zhengyi Fu (Bug#79031).
* src/fileio.c (Finsert_file_contents): Do not read more than
requested, even when the gap is so small that we use a local buffer.

(cherry picked from commit e450a7802c544b7fa14fe064c62de1f9b7098e81)
src/fileio.c