Commit e52ad9c9 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fbase64_decode_region): Don't place point outside of the

current accessible portion.
parent ea9ae18a
......@@ -3140,7 +3140,7 @@ If the region can't be decoded, return nil and don't modify the buffer.")
old_pos += inserted_chars - (XFASTINT (end) - XFASTINT (beg));
else if (old_pos > XFASTINT (beg))
old_pos = XFASTINT (beg);
SET_PT (old_pos);
SET_PT (old_pos > ZV ? ZV : old_pos);
return make_number (inserted_chars);
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