From 33efeca0da9da5fc8da59475fe5225e58cf8c425 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 24 May 2002 21:46:21 +0000 Subject: [PATCH] Only match plusargs. --- libveriuser/mc_scan_plusargs.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libveriuser/mc_scan_plusargs.c b/libveriuser/mc_scan_plusargs.c index bb9722d17..f170bb320 100644 --- a/libveriuser/mc_scan_plusargs.c +++ b/libveriuser/mc_scan_plusargs.c @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: mc_scan_plusargs.c,v 1.1 2002/05/24 20:29:07 steve Exp $" +#ident "$Id: mc_scan_plusargs.c,v 1.2 2002/05/24 21:46:21 steve Exp $" #endif # include @@ -43,8 +43,9 @@ char *mc_scan_plusargs(char *plusarg) a = *argv; p = plusarg; - /* skip plus */ - if (*a == '+') a++; + /* only plusargs */ + if (*a != '+') continue; + a += 1; /* impossible matches */ if (strlen(a) < strlen(p)) continue; @@ -68,6 +69,9 @@ char *mc_scan_plusargs(char *plusarg) /* * $Log: mc_scan_plusargs.c,v $ + * Revision 1.2 2002/05/24 21:46:21 steve + * Only match plusargs. + * * Revision 1.1 2002/05/24 20:29:07 steve * Implement mc_scan_plusargs. *