mirror of
https://github.com/vivier/EMILE.git
synced 2024-10-11 22:24:02 +00:00
inc to add \n
This commit is contained in:
parent
f5d73a387d
commit
b02c57eea7
@ -49,7 +49,11 @@ void config_set_indexed_property(char *configuration,
|
|||||||
if (last_index != -1)
|
if (last_index != -1)
|
||||||
last_index = config_find_entry(configuration + last_index, index_name, NULL);
|
last_index = config_find_entry(configuration + last_index, index_name, NULL);
|
||||||
if (last_index == -1)
|
if (last_index == -1)
|
||||||
|
{
|
||||||
last_index = strlen(configuration);
|
last_index = strlen(configuration);
|
||||||
|
if (last_index > 0)
|
||||||
|
last_index++; /* to insert a '\n' */
|
||||||
|
}
|
||||||
index = last_index;
|
index = last_index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user