From e52ad9c9c74f983db6875f9f7131054a7462e965 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 8 Sep 1999 07:54:18 +0000 Subject: [PATCH] (Fbase64_decode_region): Don't place point outside of the current accessible portion. --- src/fns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5