diff -Naur sarg-2.2.2/log.c sarg-2.2.2-new/log.c --- sarg-2.2.2/log.c 2006-08-29 15:09:32.000000000 +0400 +++ sarg-2.2.2-new/log.c 2006-09-06 13:37:50.000000000 +0400 @@ -733,7 +733,7 @@ getword(val3,arqtt,'_'); sprintf(period,"%s-%s",val2,val3); sarglog=1; - } else lseek(fileno(fp_in), 0, 0); + } else rewind(fp_in); if(strcmp(ParsedOutputLog, "no") != 0 && !sarglog) { if(access(ParsedOutputLog,R_OK) != 0) {