From b36b703c29a6cad8c01ea5a5867a709791324eff Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 1 Sep 2021 15:46:09 +0200 Subject: [PATCH] fftools/cmdutils: Use %c, not %s to write a single char Signed-off-by: Andreas Rheinhardt --- fftools/cmdutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 9c14a60fdd..ac172dbd65 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -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:" "); }