mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-08 10:06:22 -05:00
config: clone: fix font-list cloning
Need to copy over *all* members...
This commit is contained in:
parent
4e5f5026b8
commit
26089e8f4d
1 changed files with 4 additions and 1 deletions
5
config.c
5
config.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue