diff options
author | sfan5 <sfan5@live.de> | 2023-01-09 21:22:23 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-01-12 22:02:07 +0100 |
commit | f4280e5238b5df8eb33f3e9249decc68cacdde41 (patch) | |
tree | 507e6db9ac315d08fe928867821acb96b4ffb97d /video/out | |
parent | 2703a2c8ff87c18610534f2ba2acd15fda8acb9b (diff) | |
download | mpv-f4280e5238b5df8eb33f3e9249decc68cacdde41.tar.bz2 mpv-f4280e5238b5df8eb33f3e9249decc68cacdde41.tar.xz |
video/x11: replace sprintf usage
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/x11_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 01611e0326..40d6b77420 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -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; } |