video/x11: replace sprintf usage

This commit is contained in:
sfan5 2023-01-09 21:22:23 +01:00
parent 2703a2c8ff
commit f4280e5238
1 changed files with 1 additions and 1 deletions

View File

@ -2250,7 +2250,7 @@ bool vo_x11_screen_is_composited(struct vo *vo)
{
struct vo_x11_state *x11 = vo->x11;
char buf[50];
sprintf(buf, sizeof(buf), "_NET_WM_CM_S%d", x11->screen);
snprintf(buf, sizeof(buf), "_NET_WM_CM_S%d", x11->screen);
Atom NET_WM_CM = XInternAtom(x11->display, buf, False);
return XGetSelectionOwner(x11->display, NET_WM_CM) != None;
}