diff options
author | Richard M. Stallman <rms@gnu.org> | 1999-09-08 07:54:18 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1999-09-08 07:54:18 +0000 |
commit | e52ad9c9c74f983db6875f9f7131054a7462e965 (patch) | |
tree | b68274727b47e82b7d3833461ebd7430213cd9f1 /src/fns.c | |
parent | ea9ae18a5585a0e2900deab527d29ed9676635f3 (diff) | |
download | emacs-e52ad9c9c74f983db6875f9f7131054a7462e965.tar.gz |
(Fbase64_decode_region): Don't place point outside of the
current accessible portion.
Diffstat (limited to 'src/fns.c')
-rw-r--r-- | src/fns.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |