From c4cca6ef899b28c1d1c33ffd6d4dcc6f055708f5 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 1 Dec 2017 15:56:21 +0100 Subject: [PATCH] Fix format string --- src/get_line.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/get_line.c b/src/get_line.c index 8db6765..289e5a2 100644 --- a/src/get_line.c +++ b/src/get_line.c @@ -95,7 +95,7 @@ get_line(char *line, size_t max_len, const char *prompt) } trim(line); if (strlen(line) >= max_len) { - fprintf(stderr, "(truncated to %u characters)\n", (int) max_len); + fprintf(stderr, "(truncated to %u characters)\n", (unsigned int) max_len); } else if (*line == 0) { fprintf(stderr, "(empty)\n"); } else {