summaryrefslogtreecommitdiff
path: root/popt
diff options
context:
space:
mode:
authorewt <devnull@localhost>1997-05-07 19:43:23 +0000
committerewt <devnull@localhost>1997-05-07 19:43:23 +0000
commitbd1ece83f25672ef7dfbbe5895a40f0a178bfa87 (patch)
tree260a4132857a0657bafcb29ba9ecf9d82bac7d36 /popt
parent49a247317a3b5a31f2a3f8a0ebe867aae78de077 (diff)
downloadlibrpm-tizen-bd1ece83f25672ef7dfbbe5895a40f0a178bfa87.tar.gz
librpm-tizen-bd1ece83f25672ef7dfbbe5895a40f0a178bfa87.tar.bz2
librpm-tizen-bd1ece83f25672ef7dfbbe5895a40f0a178bfa87.zip
= didn't work w/ long arguments
CVS patchset: 1615 CVS date: 1997/05/07 19:43:23
Diffstat (limited to 'popt')
-rw-r--r--popt/popt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/popt/popt.c b/popt/popt.c
index 143c2e72c..b9bac7eab 100644
--- a/popt/popt.c
+++ b/popt/popt.c
@@ -134,7 +134,7 @@ int poptGetNextOpt(poptContext con) {
chptr = optString;
while (*chptr && *chptr != '=') chptr++;
if (*chptr == '=') {
- longArg = origOptString + (chptr - localOptString);
+ longArg = origOptString + (chptr - localOptString) + 1;
*chptr = '\0';
}