mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
main/config: replace some uses of xasprintf() with xstrjoin()
This commit is contained in:
parent
578765ad83
commit
853be450bb
2 changed files with 8 additions and 8 deletions
8
main.c
8
main.c
|
|
@ -261,7 +261,7 @@ main(int argc, char *const *argv)
|
|||
break;
|
||||
|
||||
case 't':
|
||||
tll_push_back(overrides, xasprintf("term=%s", optarg));
|
||||
tll_push_back(overrides, xstrjoin("term=", optarg));
|
||||
break;
|
||||
|
||||
case 'L':
|
||||
|
|
@ -269,11 +269,11 @@ main(int argc, char *const *argv)
|
|||
break;
|
||||
|
||||
case 'T':
|
||||
tll_push_back(overrides, xasprintf("title=%s", optarg));
|
||||
tll_push_back(overrides, xstrjoin("title=", optarg));
|
||||
break;
|
||||
|
||||
case 'a':
|
||||
tll_push_back(overrides, xasprintf("app-id=%s", optarg));
|
||||
tll_push_back(overrides, xstrjoin("app-id=", optarg));
|
||||
break;
|
||||
|
||||
case 'D': {
|
||||
|
|
@ -287,7 +287,7 @@ main(int argc, char *const *argv)
|
|||
}
|
||||
|
||||
case 'f': {
|
||||
char *font_override = xasprintf("font=%s", optarg);
|
||||
char *font_override = xstrjoin("font=", optarg);
|
||||
tll_push_back(overrides, font_override);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue