Erich E. Hoover : hhctrl.ocx: Fix an off by one mistake in searching for the node endpoint.

Alexandre Julliard julliard at winehq.org
Wed May 7 15:18:15 CDT 2014


Module: wine
Branch: master
Commit: 74c5e38b7c229fbd427a1dcc63507e687db4f69c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=74c5e38b7c229fbd427a1dcc63507e687db4f69c

Author: Erich E. Hoover <erich.e.hoover at gmail.com>
Date:   Mon May  5 23:12:10 2014 -0600

hhctrl.ocx: Fix an off by one mistake in searching for the node endpoint.

---

 dlls/hhctrl.ocx/stream.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/hhctrl.ocx/stream.c b/dlls/hhctrl.ocx/stream.c
index 6e831e5..84ed317 100644
--- a/dlls/hhctrl.ocx/stream.c
+++ b/dlls/hhctrl.ocx/stream.c
@@ -122,7 +122,7 @@ static BOOL find_node_end(stream_t *stream, strbuf_t *buf)
         if(buf->len == 0)
             break;
         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++;
         b = buf->len;
         if(tag_count % 2 != 0)




More information about the wine-cvs mailing list