use memmove()

This commit is contained in:
Laurent Vivier 2007-08-26 19:16:40 +00:00
parent 76401bbcba
commit 54fff16a0d

View File

@ -25,7 +25,7 @@ void config_remove_indexed_property(char *configuration, char *index_name,
if (index != -1)
{
len = strlen(configuration + index);
memcpy(configuration + last_index, configuration + index, len);
memmove(configuration + last_index, configuration + index, len);
}
if (configuration[index + len - 1] == '\n')