From 0fd5124ef489f99a26c7f95ed47865c3868abf87 Mon Sep 17 00:00:00 2001
From: Erik Auerswald <auerswal@unix-ag.uni-kl.de>
Date: Sun, 15 May 2022 16:54:16 +0200
Subject: [PATCH] datamash: fix --filler=X default in help output

The help output for the --filler=X option contains a format
specifier (%s) to print the default filler value, but it is
printed using fputs() and no value for %s is provided.

* src/datamash.c (usage): use printf() and provide default value.
---
 src/datamash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/datamash.c b/src/datamash.c
index fc0ade3..e76c904 100644
--- a/src/datamash.c
+++ b/src/datamash.c
@@ -250,9 +250,9 @@ which require a pair of fields (e.g. 'pcov 2:6').\n"), stdout);
       fputs (_("\
       --no-strict           allow lines with varying number of fields\n\
 "), stdout);
-      fputs (_("\
+      printf (_("\
       --filler=X            fill missing values with X (default %s)\n\
-"), stdout);
+"), missing_field_filler);
 
       fputs ("\n", stdout);
       fputs (_("General Options:\n"),stdout);
-- 
2.17.1

