mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
wayland: debug: make sure state_str is properly NULL terminated
This commit is contained in:
parent
1a808d2552
commit
291410bd71
1 changed files with 2 additions and 0 deletions
|
|
@ -473,6 +473,8 @@ xdg_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel,
|
|||
#if defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG
|
||||
if (state_chars > 2)
|
||||
state_str[state_chars - 2] = '\0';
|
||||
else
|
||||
state_str[0] = '\0';
|
||||
|
||||
LOG_DBG("xdg-toplevel: configure: size=%dx%d, states=%s",
|
||||
width, height, state_str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue