Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Aug 1, 2019
1 parent 9889762 commit e54e5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e54e5e3

Please sign in to comment.