tummiboot: fix long file names bug in copy_file_buf

Signed-off-by: Todor Minchev <todor.minchev@intel.com>