aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-06-13 13:54:18 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-06-13 13:54:18 +0300
commitdbe318987cf3a36fe63893205d3df0dc3be7fa4a (patch)
tree6054155c2b203a10d5d6bf7f33b164ab89b260b7 /src
parentc31f6e97690e6febb98e42fdc5172b4b4280260c (diff)
downloadgrecs-dbe318987cf3a36fe63893205d3df0dc3be7fa4a.tar.gz
grecs-dbe318987cf3a36fe63893205d3df0dc3be7fa4a.tar.bz2
Bugfix
* lib/wordsplit.c (_wsplt_store_errctx): Fix typo in the error message. (wsplt_assign_var): Fix a +1 offset of the ws_envidx field.
Diffstat (limited to 'src')
-rw-r--r--src/wordsplit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wordsplit.c b/src/wordsplit.c
index b38dde4..d01fd43 100644
--- a/src/wordsplit.c
+++ b/src/wordsplit.c
@@ -115,7 +115,7 @@ _wsplt_store_errctx (struct wordsplit *wsp, char const *str, size_t len)
115 if (!wsp->ws_errctx) 115 if (!wsp->ws_errctx)
116 { 116 {
117 wsp->ws_error ("%s", 117 wsp->ws_error ("%s",
118 _("memory exhausted while trying to store error subject")); 118 _("memory exhausted while trying to store error context"));
119 } 119 }
120 else 120 else
121 { 121 {
@@ -1185,7 +1185,7 @@ wsplt_assign_var (struct wordsplit *wsp, const char *name, size_t namelen,
1185 strcpy(v + namelen, value); 1185 strcpy(v + namelen, value);
1186 wsp->ws_env[wsp->ws_envidx++] = v; 1186 wsp->ws_env[wsp->ws_envidx++] = v;
1187 } 1187 }
1188 wsp->ws_env[wsp->ws_envidx++] = NULL; 1188 wsp->ws_env[wsp->ws_envidx] = NULL;
1189 return WRDSE_OK; 1189 return WRDSE_OK;
1190} 1190}
1191 1191

Return to:

Send suggestions and report system problems to the System administrator.