diff options
Diffstat (limited to 'lib/http2.c')
-rw-r--r-- | lib/http2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c index da001dfd0..dccaad1d1 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -345,7 +345,7 @@ const char *Curl_http2_strerror(uint32_t err) "INADEQUATE_SECURITY", /* 0xC */ "HTTP_1_1_REQUIRED" /* 0xD */ }; - return (err < sizeof str / sizeof str[0]) ? str[err] : "unknown"; + return (err < sizeof(str) / sizeof(str[0])) ? str[err] : "unknown"; #else return nghttp2_http2_strerror(err); #endif |