From f4280e5238b5df8eb33f3e9249decc68cacdde41 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 9 Jan 2023 21:22:23 +0100 Subject: [PATCH] video/x11: replace sprintf usage --- video/out/x11_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }