From fe1495e44e224a47499baf77249ae5b217874f47 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Mon, 1 Jul 2002 21:42:41 +0000 Subject: [PATCH] * argparse.c (optfile_parse): Fix variable typo - 'p2' should be 'p' :) --- util/ChangeLog | 5 +++++ util/argparse.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/util/ChangeLog b/util/ChangeLog index 7e7e099cd..9550271d9 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,8 @@ +2002-07-01 David Shaw + + * argparse.c (optfile_parse): Fix variable typo - 'p2' should be + 'p' :) + 2002-06-29 Werner Koch * argparse.c (optfile_parse): Renamed an auto I to P2 to avoid diff --git a/util/argparse.c b/util/argparse.c index b857c1d61..cd518d138 100644 --- a/util/argparse.c +++ b/util/argparse.c @@ -337,8 +337,8 @@ optfile_parse( FILE *fp, const char *filename, unsigned *lineno, break; if(*p2=='"' && *(p2+1)=='\0') { - p2[strlen(p2)-1] = 0; - p2++; + p[strlen(p)-1] = 0; + p++; } } if( !set_opt_arg(arg, opts[idx].flags, p) )