diff options
author | Erik Troan <ewt@src.gnome.org> | 1997-03-04 02:23:04 +0000 |
---|---|---|
committer | Erik Troan <ewt@src.gnome.org> | 1997-03-04 02:23:04 +0000 |
commit | 0b30db8070949b12d4694369cc9f6c12c52d0476 (patch) | |
tree | 694f4bc583ed34c7e6e66c03504599b41c2fbcf9 | |
parent | ee6ff687bbc0fd1ec43880c8aba94a3aabcff27f (diff) | |
download | shared-mime-info-0b30db8070949b12d4694369cc9f6c12c52d0476.tar.gz |
svn path=/trunk/; revision=13
-rw-r--r-- | support/popt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/support/popt.c b/support/popt.c index d7005bf8..143c2e72 100644 --- a/support/popt.c +++ b/support/popt.c @@ -117,7 +117,8 @@ int poptGetNextOpt(poptContext con) { strcmp(con->aliases[i].longName, optString))) i--; if (i >= 0) { - if ((con->os - con->optionStack) == POPT_OPTION_DEPTH) + if ((con->os - con->optionStack + 1) + == POPT_OPTION_DEPTH) return POPT_ERROR_OPTSTOODEEP; con->os++; @@ -162,7 +163,7 @@ int poptGetNextOpt(poptContext con) { con->aliases[i].shortName != *origOptString) i--; if (i >= 0) { - if ((con->os - con->optionStack) == POPT_OPTION_DEPTH) + if ((con->os - con->optionStack + 1) == POPT_OPTION_DEPTH) return POPT_ERROR_OPTSTOODEEP; /* We'll need this on the way out */ |