From c7f7c10d7c37578b9ed7986f4ca9ecfb7b2faca9 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Wed, 1 Mar 2023 06:37:45 +0800 Subject: [PATCH] Coverity: fix wmsetbg string not null terminated --- util/wmsetbg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/wmsetbg.c b/util/wmsetbg.c index 1ae3d76c..e5d1b157 100644 --- a/util/wmsetbg.c +++ b/util/wmsetbg.c @@ -898,6 +898,7 @@ static noreturn void helperLoop(RContext * rc) int errcount = 4; memset(textures, 0, WORKSPACE_COUNT * sizeof(BackgroundTexture *)); + memset(buffer, 0, sizeof(buffer)); while (1) { int workspace = -1; -- 2.11.4.GIT