The sample common log file used to test the program contained additional
columns. The standard common log format doesn't have those column. Sarg
failed to parse the standard format due to the lack of any supernumerary
column.
Begin=++Line;
Entry->DataSize=0LL;
while (isdigit(*Line)) Entry->DataSize=Entry->DataSize*10+(*Line++-'0');
- if (*Line!=' ' || Begin==Line) return(RLRC_Unknown);
-
+ // some log contains more columns
+ if ((*Line && *Line!=' ') || Begin==Line) return(RLRC_Unknown);
+
// check the entry time
if (mktime(&Entry->EntryTime)==-1) {
debuga(_("Invalid date or time found in the common log file\n"));