From e54e5e3be96b10ac318522e716e7555424238ca6 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Thu, 1 Aug 2019 16:23:49 +0200 Subject: [PATCH] .. --- src/bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bar.c b/src/bar.c index 549fb251..3903d51a 100644 --- a/src/bar.c +++ b/src/bar.c @@ -61,7 +61,7 @@ static CTFontRef bar_create_font(char *cstring) { float size = 10.0f; char font_properties[2][255] = { {}, {} }; - sscanf(cstring, "%255[^:]:%255[^:]:%f", font_properties[0], font_properties[1], &size); + sscanf(cstring, "%254[^:]:%254[^:]:%f", font_properties[0], font_properties[1], &size); CFStringRef font_family_name = CFStringCreateWithCString(NULL, font_properties[0], kCFStringEncodingUTF8); CFStringRef font_style_name = CFStringCreateWithCString(NULL, font_properties[1], kCFStringEncodingUTF8); CFNumberRef font_size = CFNumberCreate(NULL, kCFNumberFloat32Type, &size);