Commit a89a914a authored by Karl Heuer's avatar Karl Heuer
Browse files

(Finsert_file_contents): set type of `end', not just the value.

parent a444c70b
......@@ -2691,6 +2691,7 @@ and (2) it puts less data in the undo list.")
CHECK_NUMBER (end, 0);
XSETTYPE (end, Lisp_Int);
XSETINT (end, st.st_size);
if (XINT (end) != st.st_size)
error ("maximum buffer size exceeded");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment