changeset 4831:66a523672100

(skip_chars): Reinstate check for end of buffer, ignoring cryptic comment.
author Brian Fox <bfox@gnu.org>
date Thu, 07 Oct 1993 22:58:57 +0000
parents a61307ac474e
children 88df989388b9
files src/search.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Thu Oct 07 16:50:26 1993 +0000
+++ b/src/search.c	Thu Oct 07 22:58:57 1993 +0000
@@ -416,13 +416,18 @@
   else
     CHECK_NUMBER_COERCE_MARKER (lim, 1);
 
+  /* In any case, don't allow scan outside bounds of buffer.  */
+
+  /* I don't know what things this breaks, and there is no entry in the
+     ChangeLog, so I reinstated the end of buffer limit check.  This code
+     breaks without it. (bfox) */
 #if 0				/* This breaks some things... jla. */
-  /* In any case, don't allow scan outside bounds of buffer.  */
   if (XFASTINT (lim) > ZV)
     XFASTINT (lim) = ZV;
+#endif
   if (XFASTINT (lim) < BEGV)
     XFASTINT (lim) = BEGV;
-#endif
+/* #endif */
 
   p = XSTRING (string)->data;
   pend = p + XSTRING (string)->size;