commit | c6e20e44dd8fe0f97456901e6e67dc4291c420c4 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Thu Sep 11 16:30:26 2003 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Thu Sep 11 16:30:26 2003 +0000 |
tree | b6565d727b916371b65addb556c5f76a6da09643 | |
parent | 07cb8226c097ce3d8db934a07025c62803ad1f64 [diff] [blame] |
fixed a bug in one corner case of attribute parsing. Daniel * parser.c: fixed a bug in one corner case of attribute parsing. Daniel
diff --git a/parser.c b/parser.c index 397d26b..ddf4bd8 100644 --- a/parser.c +++ b/parser.c
@@ -7613,7 +7613,7 @@ /* * skip the trailing blanks */ - while (last[-1] == 0x20) last--; + while ((last[-1] == 0x20) && (last > start)) last--; while ((in < end) && (*in != limit) && ((*in == 0x20) || (*in == 0x9) || (*in == 0xA) || (*in == 0xD))) {