* src/wordsplit.c: Always pass format strings as first argument
to wsp->ws_error.
This commit is contained in:
Sergey Poznyakoff 2016-11-21 13:00:54 +02:00
parent 89d57077d3
commit b24ce9fe1e

View file

@ -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));
}
}