Access violation in buffers

When adding a large amount of data that spans to multiple chunks, the pointer is incremented by the wrong value.
This commit is contained in:
Etienne Cimon 2015-05-14 10:45:17 -04:00
parent 53bfc70c9e
commit 32603d7eff
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ int nghttp2_bufs_add(nghttp2_bufs *bufs, const void *data, size_t len) {
}
buf->last = nghttp2_cpymem(buf->last, p, nwrite);
p += len;
p += nwrite;
len -= nwrite;
}