# HG changeset patch # User Richard M. Stallman # Date 936777258 0 # Node ID e1f5592218c14255bd20d6538b3aff33d0975a69 # Parent 7ab723e4a21a38d4e2166d5e862f6e6aa6f315c4 (Fbase64_decode_region): Don't place point outside of the current accessible portion. diff -r 7ab723e4a21a -r e1f5592218c1 src/fns.c --- a/src/fns.c Wed Sep 08 07:50:19 1999 +0000 +++ b/src/fns.c Wed Sep 08 07:54:18 1999 +0000 @@ -3140,7 +3140,7 @@ 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); }