forked from github/server
fix valgrind error.
I did not understand what keys look like, then effed up when fixing that.
This commit is contained in:
parent
75a97c2977
commit
8c4cccbc65
1 changed files with 1 additions and 1 deletions
|
@ -732,7 +732,7 @@ void config_set_from(const dictionary *d)
|
|||
const char *val;
|
||||
size_t klen = strlen(keys[k]);
|
||||
assert(klen+slen+1<sizeof(key));
|
||||
memcpy(key+slen+1, keys[k]+slen+1, klen+1);
|
||||
memcpy(key+slen+1, keys[k]+slen+1, klen-slen);
|
||||
val = iniparser_getstring(d, keys[k], NULL);
|
||||
if (val) {
|
||||
config_set(key, val);
|
||||
|
|
Loading…
Reference in a new issue