Fix crash with insert-file-contents and misdecoded text.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Jan 2014 00:32:30 +0000 (16:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Jan 2014 00:32:30 +0000 (16:32 -0800)
commit4f8c23b12913774c1a6cec56eb2bc60b17026af3
treecfb5eee9b8d60660b70852a80b2b4d5097af21be
parented85dee69d1ba238407326f67b0a25eaa3ddaab7
Fix crash with insert-file-contents and misdecoded text.

* fileio.c (Finsert_file_contents): Set CODING_MODE_LAST_BLOCK
before invoking decode_coding_gap, since there's just one block.

Fixes: debbugs:16286
src/ChangeLog
src/fileio.c