From 468b9df67ce631453ac40faf2a47739df3263d74 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 9 Nov 2015 02:03:21 +0100 Subject: [PATCH] The size in a %* formatter should be an int, not a size_t value --- glorytun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glorytun.c b/glorytun.c index 8a5717e..91f1180 100644 --- a/glorytun.c +++ b/glorytun.c @@ -567,7 +567,7 @@ static void option_usage (struct option *opts, char *name) size_t inc = str_len(opts[k].name)+(isflag?0:4)+4; if (len+inc>60) { - printf("\n%*s", slen, ""); + printf("\n%*s", (int) slen, ""); len = 0; } printf(" [%s%s]", opts[k].name, isflag?"":" ARG");