From: Richard M. Stallman Date: Wed, 8 Sep 1999 07:54:18 +0000 (+0000) Subject: (Fbase64_decode_region): Don't place point outside of the X-Git-Tag: emacs-pretest-21.0.90~6835 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e52ad9c9c74f983db6875f9f7131054a7462e965;p=emacs.git (Fbase64_decode_region): Don't place point outside of the current accessible portion. --- diff --git a/src/fns.c b/src/fns.c index 8c512039788..32ec031bf46 100644 --- a/src/fns.c +++ b/src/fns.c @@ -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); }