diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-10-07 10:13:41 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-07 11:15:12 +0200 |
commit | 8dd0f1aa46c68c42401f79634a37f4b259e5ae6f (patch) | |
tree | e9b0d8dccb2ecac36f5bb28a4791c99854c4779b | |
parent | 5044909ca251d3d190d8c5cc45243a04d244eaed (diff) | |
download | curl-8dd0f1aa46c68c42401f79634a37f4b259e5ae6f.tar.gz |
print_category: printf %*s needs an int argument
... not a size_t!
Detected by Coverity: CID 1492331.
Closes #7823
-rw-r--r-- | src/tool_help.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |