diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-11-21 13:00:54 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-11-21 13:00:54 +0200 |
commit | b24ce9fe1e62ff5f917cee48f20321137aa7f1ea (patch) | |
tree | 0fe25c49d1b85ec266ca611446ee16072f803fdf | |
parent | 89d57077d3e8f1b926e90ea261087ea78aaa5153 (diff) | |
download | wordsplit-b24ce9fe1e62ff5f917cee48f20321137aa7f1ea.tar.gz wordsplit-b24ce9fe1e62ff5f917cee48f20321137aa7f1ea.tar.bz2 |
Bugfix
* src/wordsplit.c: Always pass format strings as first argument
to wsp->ws_error.
-rw-r--r-- | src/wordsplit.c | 4 |
1 files 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)); } } |