resolves https://issues.ciphershed.org/issues/29
changed the strcpy to strcpy_s