Merge branch 'fix-variables-cfg'
This commit is contained in:
commit
67aab7c8bd
@ -390,8 +390,8 @@ void parse_file(const char *f) {
|
|||||||
int extra = (strlen(current->value) - strlen(current->key));
|
int extra = (strlen(current->value) - strlen(current->key));
|
||||||
char *next;
|
char *next;
|
||||||
for (next = bufcopy;
|
for (next = bufcopy;
|
||||||
(bufcopy + (next - bufcopy)) < (buf + stbuf.st_size) &&
|
next < (bufcopy + stbuf.st_size) &&
|
||||||
(next = strcasestr(bufcopy + (next - bufcopy), current->key)) != NULL;
|
(next = strcasestr(next, current->key)) != NULL;
|
||||||
next += strlen(current->key)) {
|
next += strlen(current->key)) {
|
||||||
*next = '_';
|
*next = '_';
|
||||||
extra_bytes += extra;
|
extra_bytes += extra;
|
||||||
|
Loading…
Reference in New Issue
Block a user