Changed strcpy to strncpy to avoid possible string overflow.
Authored by: dwarren 2015-10-28
Parent: [r8494]
Child: [r8496]