mirror of
https://codeberg.org/adnano/wmenu.git
synced 2025-10-29 05:40:20 -04:00
Fix crash when some line contains %
This commit is contained in:
parent
bbd82569bb
commit
9fb3ffa522
2 changed files with 7 additions and 7 deletions
2
pango.c
2
pango.c
|
|
@ -66,7 +66,7 @@ void get_text_size(cairo_t *cairo, const char *font, int *width, int *height,
|
|||
|
||||
int text_width(cairo_t *cairo, const char *font, const char *text) {
|
||||
int text_width;
|
||||
get_text_size(cairo, font, &text_width, NULL, NULL, 1, text);
|
||||
get_text_size(cairo, font, &text_width, NULL, NULL, 1, "%s", text);
|
||||
return text_width;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue