aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-11-21 13:00:54 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-11-21 13:00:54 +0200
commitb24ce9fe1e62ff5f917cee48f20321137aa7f1ea (patch)
tree0fe25c49d1b85ec266ca611446ee16072f803fdf
parent89d57077d3e8f1b926e90ea261087ea78aaa5153 (diff)
downloadwordsplit-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.c4
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));
}
}

Return to:

Send suggestions and report system problems to the System administrator.