Mercurial > hg > xemacs-beta
comparison src/syntax.c @ 2167:54e1ecdc5778
[xemacs-hg @ 2004-07-07 01:52:14 by stephent]
fix buffer overrun crash <87llhwr3e3.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Wed, 07 Jul 2004 01:52:17 +0000 |
parents | a8d8f419b459 |
children | 04bc9d2f42c7 |
comparison
equal
deleted
inserted
replaced
2166:88a1aad899aa | 2167:54e1ecdc5778 |
---|---|
305 if (lookup_syntax_properties) | 305 if (lookup_syntax_properties) |
306 { | 306 { |
307 if (count <= 0) | 307 if (count <= 0) |
308 { | 308 { |
309 from--; | 309 from--; |
310 from = buffer_or_string_clip_to_accessible_byte (cache->object, | 310 from = buffer_or_string_clip_to_accessible_char (cache->object, |
311 from); | 311 from); |
312 } | 312 } |
313 if (!(from >= cache->prev_change && from < cache->next_change)) | 313 if (!(from >= cache->prev_change && from < cache->next_change)) |
314 update_syntax_cache (cache, from, count); | 314 update_syntax_cache (cache, from, count); |
315 } | 315 } |