= didn't work w/ long arguments
authorewt <devnull@localhost>
Wed, 7 May 1997 19:43:23 +0000 (19:43 +0000)
committerewt <devnull@localhost>
Wed, 7 May 1997 19:43:23 +0000 (19:43 +0000)
CVS patchset: 1615
CVS date: 1997/05/07 19:43:23

CHANGES
popt/popt.c

diff --git a/CHANGES b/CHANGES
index efb20eb..7d84f02 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -31,6 +31,7 @@
        - include <strings.h> on SCO
        - don't use cpio when installing packages <gulp>
        - fixed bug which affected dependencies on the Alpha
+       - made '=' work for long arguments (the switch to popt broke this)
 
 2.3.10 -> 2.3.11:
        - fixed newlines in --scripts output
index 143c2e7..b9bac7e 100644 (file)
@@ -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';
                }