BUG in htmllog.c related to linecount