hhctrl.ocx: Fix an off by one mistake in searching for the node endpoint.
This commit is contained in:
parent
2d80b3ed54
commit
74c5e38b7c
|
@ -122,7 +122,7 @@ static BOOL find_node_end(stream_t *stream, strbuf_t *buf)
|
||||||
if(buf->len == 0)
|
if(buf->len == 0)
|
||||||
break;
|
break;
|
||||||
p = &buf->buf[b];
|
p = &buf->buf[b];
|
||||||
while((p = memchr(p+1, '"', buf->len-(p-buf->buf))) != NULL)
|
while((p = memchr(p+1, '"', buf->len-(p+1-buf->buf))) != NULL)
|
||||||
tag_count++;
|
tag_count++;
|
||||||
b = buf->len;
|
b = buf->len;
|
||||||
if(tag_count % 2 != 0)
|
if(tag_count % 2 != 0)
|
||||||
|
|
Loading…
Reference in New Issue