|
@@ -3990,9 +3990,8 @@ int inter_config_read(char *cfgName)
|
|
|
#define RENEWALPREFIX "renewal-"
|
|
|
if (!strncmpi(w1, RENEWALPREFIX, strlen(RENEWALPREFIX))) {
|
|
|
#ifdef RENEWAL
|
|
|
- // Copy the original name
|
|
|
- // Do not use safestrncpy here - enforces zero termination before copying and will break it [Lemongrass]
|
|
|
- strncpy(w1, w1 + strlen(RENEWALPREFIX), strlen(w1) - strlen(RENEWALPREFIX) + 1);
|
|
|
+ // Move the original name to the beginning of the string
|
|
|
+ memmove(w1, w1 + strlen(RENEWALPREFIX), strlen(w1) - strlen(RENEWALPREFIX) + 1);
|
|
|
#else
|
|
|
// In Pre-Renewal the Renewal specific configurations can safely be ignored
|
|
|
continue;
|