aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-10-11 09:58:54 +0000
committerJustus Winter <[email protected]>2016-10-18 13:21:17 +0000
commit0734f4863859257d18ca96f4b9be62be75fcffe1 (patch)
treebfa8f1ddd65a4bfe484ba976986082fdfc2064e4
parentAdd error code USER_ID_EXISTS, NAME_EXISTS, and DUP_NAME. (diff)
downloadlibgpg-error-0734f4863859257d18ca96f4b9be62be75fcffe1.tar.gz
libgpg-error-0734f4863859257d18ca96f4b9be62be75fcffe1.zip
estream: Fix modestring parsing.
* src/estream.c (parse_mode): Fix parsing the 'sysopen' flag. Signed-off-by: Justus Winter <[email protected]>
-rw-r--r--src/estream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/estream.c b/src/estream.c
index 4cc72ba..95d7211 100644
--- a/src/estream.c
+++ b/src/estream.c
@@ -1809,7 +1809,7 @@ parse_mode (const char *modestr,
}
else if (!strncmp (modestr, "sysopen", 7))
{
- modestr += 8;
+ modestr += 7;
if (*modestr && !strchr (" \t,", *modestr))
{
_set_errno (EINVAL);