From b24ce9fe1e62ff5f917cee48f20321137aa7f1ea Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 21 Nov 2016 13:00:54 +0200 Subject: [PATCH] Bugfix * src/wordsplit.c: Always pass format strings as first argument to wsp->ws_error. --- src/wordsplit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wordsplit.c b/src/wordsplit.c index e326c8c..9381ae7 100644 --- a/src/wordsplit.c +++ b/src/wordsplit.c @@ -59,7 +59,7 @@ static void _wsplt_alloc_die (struct wordsplit *wsp) { - wsp->ws_error (_("memory exhausted")); + wsp->ws_error ("%s", _("memory exhausted")); abort (); } @@ -2330,7 +2330,7 @@ wordsplit_perror (struct wordsplit *wsp) break; default: - wsp->ws_error (wordsplit_strerror (wsp)); + wsp->ws_error ("%s", wordsplit_strerror (wsp)); } }