mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
Merge 4dd76b7d1e into 10d07478ad
This commit is contained in:
commit
abaa1336a7
1 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ void get_text_size(cairo_t *cairo, const char *font, int *width, int *height,
|
|||
va_list args;
|
||||
va_start(args, fmt);
|
||||
if (vsnprintf(buf, sizeof(buf), fmt, args) >= max_chars) {
|
||||
strcpy(&buf[sizeof(buf) - sizeof(overflow)], overflow);
|
||||
strcpy(&buf[sizeof(buf) - strlen(overflow) - 1], overflow);
|
||||
}
|
||||
va_end(args);
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ void pango_printf(cairo_t *cairo, const char *font,
|
|||
va_list args;
|
||||
va_start(args, fmt);
|
||||
if (vsnprintf(buf, sizeof(buf), fmt, args) >= max_chars) {
|
||||
strcpy(&buf[sizeof(buf) - sizeof(overflow)], overflow);
|
||||
strcpy(&buf[sizeof(buf) - strlen(overflow) - 1], overflow);
|
||||
}
|
||||
va_end(args);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue