Change-Id: Ic9f239132fd1a2793176cd85ba00b8c553bd056a
// set profile.data path and collect/use it if it non-exists/exists.
if (profile) {
char multiCoreJitProfile[strlen(localDataPath) + strlen(PROFILE_BASENAME) + 1];
- strncpy(multiCoreJitProfile, localDataPath, strlen(localDataPath) + 1);
+ memcpy(multiCoreJitProfile, localDataPath, strlen(localDataPath) + 1);
strncat(multiCoreJitProfile, PROFILE_BASENAME, strlen(PROFILE_BASENAME));
setEnvironmentVariable("COMPlus_MultiCoreJitProfile", multiCoreJitProfile);