handle files < BUFSIZ