From 2ad6acaef2e0c779eed4dc9747864a9f5ef89fea Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 26 Oct 2014 15:48:33 +0200 Subject: [PATCH] Fix font parsing. --- client/common/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/common/common.c b/client/common/common.c index 8677d1f..3366c2c 100644 --- a/client/common/common.c +++ b/client/common/common.c @@ -79,7 +79,7 @@ usage(FILE *out, const char *name) " -b, --bottom appears at the bottom of the screen. ()\n" " -f, --grab grabs the keyboard before reading stdin. ()\n" " -m, --monitor index of monitor where menu will appear. ()\n" - " --fn defines the font to be used. (w)\n" + " --fn defines the font to be used ('name [size]'). (w)\n" " --bg defines the background color. (w)\n" " --tb defines the title background color. (w)\n" " --tf defines the title foreground color. (w)\n" @@ -191,7 +191,7 @@ parse_args(struct client *client, int *argc, char **argv[]) break; case 0x102: - if (sscanf(optarg, "%ms:%u", &client->font, &client->font_size) < 2) + if (sscanf(optarg, "%ms %u", &client->font, &client->font_size) < 2) sscanf(optarg, "%ms", &client->font); break; case 0x103: