mirror of
git://git.gnu.org.ua/wordsplit.git
synced 2025-04-25 16:19:54 +03:00
Bugfix
* src/wordsplit.c (_wsplt_store_errctx): Fix typo in the error message. (wsplt_assign_var): Fix a +1 offset of the ws_envidx field.
This commit is contained in:
parent
b4fefca052
commit
188bbb90d6
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ _wsplt_store_errctx (struct wordsplit *wsp, char const *str, size_t len)
|
|||
if (!wsp->ws_errctx)
|
||||
{
|
||||
wsp->ws_error ("%s",
|
||||
_("memory exhausted while trying to store error subject"));
|
||||
_("memory exhausted while trying to store error context"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1185,7 +1185,7 @@ wsplt_assign_var (struct wordsplit *wsp, const char *name, size_t namelen,
|
|||
strcpy(v + namelen, value);
|
||||
wsp->ws_env[wsp->ws_envidx++] = v;
|
||||
}
|
||||
wsp->ws_env[wsp->ws_envidx++] = NULL;
|
||||
wsp->ws_env[wsp->ws_envidx] = NULL;
|
||||
return WRDSE_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue