From: Daniel Stenberg Date: Thu, 7 Oct 2021 08:13:41 +0000 (+0200) Subject: print_category: printf %*s needs an int argument X-Git-Tag: curl-7_80_0~133 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8dd0f1aa46c68c42401f79634a37f4b259e5ae6f;p=thirdparty%2Fcurl.git print_category: printf %*s needs an int argument ... not a size_t! Detected by Coverity: CID 1492331. Closes #7823 --- diff --git a/src/tool_help.c b/src/tool_help.c index d4c21ff6e3..d49cccd058 100644 --- a/src/tool_help.c +++ b/src/tool_help.c @@ -134,7 +134,7 @@ static void print_category(curlhelp_t category) for(i = 0; helptext[i].opt; ++i) if(helptext[i].categories & category) { - printf(" %-*s %s\n", longopt, helptext[i].opt, helptext[i].desc); + printf(" %-*s %s\n", (int)longopt, helptext[i].opt, helptext[i].desc); } }