From 8dd0f1aa46c68c42401f79634a37f4b259e5ae6f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 7 Oct 2021 10:13:41 +0200 Subject: print_category: printf %*s needs an int argument ... not a size_t! Detected by Coverity: CID 1492331. Closes #7823 --- src/tool_help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool_help.c b/src/tool_help.c index d4c21ff6e..d49cccd05 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); } } -- cgit v1.2.1