config: clone: fix font-list cloning

Need to copy over *all* members...
This commit is contained in:
Daniel Eklöf 2021-06-23 13:00:50 +02:00
parent 4e5f5026b8
commit 26089e8f4d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2970,8 +2970,11 @@ config_clone(const struct config *old)
dst->count = src->count;
dst->arr = xmalloc(dst->count * sizeof(dst->arr[0]));
for (size_t j = 0; j < dst->count; j++)
for (size_t j = 0; j < dst->count; j++) {
dst->arr[j].pt_size = src->arr[j].pt_size;
dst->arr[j].px_size = src->arr[j].px_size;
dst->arr[j].pattern = xstrdup(src->arr[j].pattern);
}
}
conf->url.label_letters = xwcsdup(old->url.label_letters);