mirror of
git://git.gnu.org.ua/wordsplit.git
synced 2025-04-25 16:19:54 +03:00
Bugfix
* src/wordsplit.c: Always pass format strings as first argument to wsp->ws_error.
This commit is contained in:
parent
89d57077d3
commit
b24ce9fe1e
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue