Add a missing position change
commitf97ced26e2bd7a09f2418e12b85eba7e3ecab428
authorNeil Mitchell <ndmitchell@gmail.com>
dateMon 28 Nov 2016, 18:25 (10 years ago)
parent36f8874
hexml.c+1−1
@@ -334,7 +334,7 @@ str static inline parse_attrval(document* d)
334334 if (c == '\"' || c == '\'')
335335 {
336336 skip(d, 1);
337− int start = d->cursor;
337+ int start = doc_position(d);
338338 if (!find(d, c))
339339 {
340340 d->error_message = _strdup("Couldn't find closing attribute bit");