Prepare the modify file buffer

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>