diff --git a/src/map/map.c b/src/map/map.c index 289d1b1636..761d863746 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -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;