diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-11-10 08:29:34 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-11-10 08:29:34 +0000 |
commit | ec845e4d0df7c8c9471fcb043caa3c63694e5f7d (patch) | |
tree | 4f019b6b44cc560805388ae0314e2229e1620421 /src/search.c | |
parent | 1a39a0883de10e17c0ea91cc4c7ab22b1ee2180c (diff) | |
download | emacs-ec845e4d0df7c8c9471fcb043caa3c63694e5f7d.tar.gz |
(skip_chars): Finish reenabling checks for buffer bounds.
Use XINT, not XFASTINT, when testing.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/search.c b/src/search.c index 8a821837528..a1dc6769d6f 100644 --- a/src/search.c +++ b/src/search.c @@ -417,19 +417,13 @@ skip_chars (forwardp, syntaxp, string, lim) 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. */ -#if 1 - if (XFASTINT (lim) > ZV) + /* jla turned this off, for no known reason. + bfox turned the ZV part on, and rms turned the + BEGV part back on. */ + if (XINT (lim) > ZV) XFASTINT (lim) = ZV; -#endif -#if 0 - if (XFASTINT (lim) < BEGV) + if (XINT (lim) < BEGV) XFASTINT (lim) = BEGV; -#endif p = XSTRING (string)->data; pend = p + XSTRING (string)->size; |