From: Frédéric Marchal Date: Tue, 2 Mar 2010 13:49:32 +0000 (+0000) Subject: Fix problem in parsing of the header of an ISA log X-Git-Tag: v2.3-pre2~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3376a277f7be040900f0f924820ea8d168700906;p=thirdparty%2Fsarg.git Fix problem in parsing of the header of an ISA log --- diff --git a/log.c b/log.c index 2ae7676..ce68b52 100644 --- a/log.c +++ b/log.c @@ -862,12 +862,12 @@ int main(int argc,char *argv[]) continue; // exclude_string - exstring=0; if(ExcludeString[0] != '\0') { + exstring=0; getword_start(&gwarea,ExcludeString); while(strchr(gwarea.current,':') != 0) { if (getword_multisep(val1,sizeof(val1),&gwarea,':')<0) { - printf("SARG: Maybe you have a broken record or garbage in your exclusion string.\n"); + debuga(_("Maybe you have a broken record or garbage in your exclusion string")); exit(1); } if((str=(char *) strstr(linebuf,val1)) != (char *) NULL ) @@ -875,8 +875,8 @@ int main(int argc,char *argv[]) } if((str=(char *) strstr(linebuf,gwarea.current)) != (char *) NULL ) exstring++; + if(exstring) continue; } - if(exstring) continue; totregsl++; if(debugm) @@ -1026,7 +1026,7 @@ int main(int argc,char *argv[]) getword_start(&gwarea,linebuf); // remove the #Fields: column at the beginning of the line if (getword_skip(1000,&gwarea,' ')<0){ - printf("SARG: Maybe you have a broken record or garbage in your %s file.\n",arq); + debuga(_("Maybe you have a broken record or garbage in your %s file"),arq); exit(1); } for (ncols=0 ; ncols=0) { isa_ncols=ncols; - for (isa_ncols=0 ; isa_ncols