fixup file copy size overflow problem

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>