Fixed buffer overflow in File::doBuffer() (dreggy)

Fixes #1580