mirror of https://github.com/mpv-player/mpv
video/x11: replace sprintf usage
This commit is contained in:
parent
2703a2c8ff
commit
f4280e5238
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue