strcpy: clean buffer overflow fix for android

Change-Id: I91ef1566ea811a7e154baf8032200e7754778860