print_category: printf %*s needs an int argument

... not a size_t!

Detected by Coverity: CID 1492331.
Closes #7823
This commit is contained in:
Daniel Stenberg 2021-10-07 10:13:41 +02:00
parent 5044909ca2
commit 8dd0f1aa46
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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);
}
}