Fix string truncating in hGetLine -- it was a pasto from Simon's code