From e56641322460d15bd52af7898ff51976b74082b9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 10 Sep 2005 05:23:30 +0000 Subject: [PATCH] Fixed MORE lines --- compiler/libpc300/sc2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/libpc300/sc2.c b/compiler/libpc300/sc2.c index bdeb16cf..15478521 100755 --- a/compiler/libpc300/sc2.c +++ b/compiler/libpc300/sc2.c @@ -1508,12 +1508,12 @@ static int substpattern(unsigned char *line,size_t buffersize,char *pattern,char if (*e=='%' && isdigit(*(e+1)) && argsnum) { arg=*(e+1)-'0'; assert(arg>=0 && arg<=9); - if (args[arg]!=NULL) { + if (args[arg]!=NULL) { len+=strlen((char*)args[arg]); e++; /* skip %, digit is skipped later */ - } else { + } else { len++; - } + } } else { len++; } /* if */