changeset 23404:529689c4a32c

(scan_lists): Bring FROM back into range BEGV...ZV.
author Richard M. Stallman <rms@gnu.org>
date Thu, 08 Oct 1998 10:47:51 +0000
parents 789be3d7ef2d
children dc0f0b75165b
files src/syntax.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/syntax.c	Thu Oct 08 09:58:00 1998 +0000
+++ b/src/syntax.c	Thu Oct 08 10:47:51 1998 +0000
@@ -1827,12 +1827,17 @@
   int temp_pos;
   int last_good = from;
   int found;
-  int from_byte = CHAR_TO_BYTE (from);
+  int from_byte;
   int out_bytepos, out_charpos;
   int temp;
 
   if (depth > 0) min_depth = 0;
 
+  if (from > ZV) from = ZV;
+  if (from < BEGV) from = BEGV;
+
+  from_byte = CHAR_TO_BYTE (from);
+
   immediate_quit = 1;
   QUIT;