fftools/cmdutils: Use %c, not %s to write a single char

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-01 15:46:09 +02:00
parent 5312208f12
commit b36b703c29

View File

@ -1345,9 +1345,9 @@ static int show_formats_devices(void *optctx, const char *opt, const char *arg,
break;
last_name = name;
printf(" %s%s %-15s %s\n",
decode ? "D" : " ",
encode ? "E" : " ",
printf(" %c%c %-15s %s\n",
decode ? 'D' : ' ',
encode ? 'E' : ' ',
name,
long_name ? long_name:" ");
}