Fix possible buffer overrun bug

- Use strncpy instead of strcpy

Open-webOS-DCO-1.0-Signed-off-by: Pekka Ropo <pekka.ropo@palm.com>

Change-Id: I8b0367adb9a4240382ba31fa9ddb086566913353
Reviewed-on: http://g2g.palm.com/1497
Reviewed-by: Build Verification
Tested-by: Pekka Ropo <pekka.ropo@palm.com>
Reviewed-by: Keith Derrick <keith.derrick@palm.com>