mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-23 01:29:34 +00:00
use memmove()
This commit is contained in:
parent
76401bbcba
commit
54fff16a0d
@ -25,7 +25,7 @@ void config_remove_indexed_property(char *configuration, char *index_name,
|
|||||||
if (index != -1)
|
if (index != -1)
|
||||||
{
|
{
|
||||||
len = strlen(configuration + index);
|
len = strlen(configuration + index);
|
||||||
memcpy(configuration + last_index, configuration + index, len);
|
memmove(configuration + last_index, configuration + index, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configuration[index + len - 1] == '\n')
|
if (configuration[index + len - 1] == '\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user