Fix format string

This commit is contained in:
Frank Denis 2017-12-01 15:56:21 +01:00
parent 66b19a6da3
commit c4cca6ef89

View file

@ -95,7 +95,7 @@ get_line(char *line, size_t max_len, const char *prompt)
} }
trim(line); trim(line);
if (strlen(line) >= max_len) { 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) { } else if (*line == 0) {
fprintf(stderr, "(empty)\n"); fprintf(stderr, "(empty)\n");
} else { } else {