Add an error check to bufseek() and add bufadvance() to seek relatively to the curren...