diff options
| author | Dmitry Antipov | 2012-07-11 10:14:19 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-07-11 10:14:19 +0400 |
| commit | d923b542aa2d115bb87e72e156be837cea752536 (patch) | |
| tree | e2a0c475d8d1aee4c790e77765554b6926871ab6 /src/lread.c | |
| parent | 57054ddd444bd1702f2bcc08321d3ed3a644448e (diff) | |
| download | emacs-d923b542aa2d115bb87e72e156be837cea752536.tar.gz emacs-d923b542aa2d115bb87e72e156be837cea752536.zip | |
Avoid call to strlen in fast_c_string_match_ignore_case.
* search.c (fast_c_string_match_ignore_case): Change to use
length argument. Adjust users accordingly.
* lisp.h (fast_c_string_match_ignore_case): Adjust prototype.
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c index c0e4a173eeb..f74d44d12a8 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -906,7 +906,7 @@ safe_to_load_p (int fd) | |||
| 906 | 906 | ||
| 907 | if (i >= nbytes | 907 | if (i >= nbytes |
| 908 | || fast_c_string_match_ignore_case (Vbytecomp_version_regexp, | 908 | || fast_c_string_match_ignore_case (Vbytecomp_version_regexp, |
| 909 | buf + i) < 0) | 909 | buf + i, nbytes - i) < 0) |
| 910 | safe_p = 0; | 910 | safe_p = 0; |
| 911 | } | 911 | } |
| 912 | if (safe_p) | 912 | if (safe_p) |