fix a malloc size issue

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
fix a strcpy issue

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>