nghttp: Fix nghttp2_pack_settings_payload use

This commit is contained in:
Tatsuhiro Tsujikawa 2013-09-09 21:25:46 +09:00
parent a1c3f89c72
commit b7e1701f06
1 changed files with 2 additions and 1 deletions

View File

@ -522,7 +522,8 @@ struct HttpClient {
nghttp2_settings_entry iv[16];
size_t niv = populate_settings(iv);
assert(sizeof(settings_payload) >= 8*niv);
rv = nghttp2_pack_settings_payload(settings_payload, iv, niv);
rv = nghttp2_pack_settings_payload(settings_payload,
sizeof(settings_payload), iv, niv);
if(rv < 0) {
return -1;
}