main/config: replace some uses of xasprintf() with xstrjoin()

This commit is contained in:
Craig Barnes 2024-03-16 20:17:53 +00:00
parent 578765ad83
commit 853be450bb
2 changed files with 8 additions and 8 deletions

8
main.c
View file

@ -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;
}