* syntax.c (apply_rules_going_right): Fix crush for lines like
commita34c2786cbee9ed3c87b32b0a84410d9e3fea226
authorAndrew V. Samoilov <sav@bcs.zp.ua>
Wed, 28 Nov 2001 12:40:18 +0000 (28 12:40 +0000)
committerAndrew V. Samoilov <sav@bcs.zp.ua>
Wed, 28 Nov 2001 12:40:18 +0000 (28 12:40 +0000)
tree506e397d3114d660c86591fc09f7f0146bf0a9db
parent23bdcf3d1ed2463520af5b2a27e478e5df1d0df7
* syntax.c (apply_rules_going_right): Fix crush for lines like
\s+ \n lightgray/13 red
in Syntax file.
(read_one_line): Use EOF instead of -1.
(get_args): Fix buffer overflow for l without trailing
whitespace(s).
(break_a): New macro.
(edit_read_syntax_rules): Use break_a to fix memory leaks.
(edit_load_syntax): Eliminate s and use message to prevent
buffer overflow.
edit/ChangeLog
edit/syntax.c