From f67b8be209768af02b33682ce5146f0ed193b079 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Fri, 12 Jul 2024 19:22:24 +0200 Subject: [PATCH] status2d: make sure to terminate the copied text with a NULL character --- patch/bar_status2d.c | 1 + 1 file changed, 1 insertion(+) diff --git a/patch/bar_status2d.c b/patch/bar_status2d.c index 860fd83..8f6a3f0 100644 --- a/patch/bar_status2d.c +++ b/patch/bar_status2d.c @@ -96,6 +96,7 @@ drawstatusbar(BarArg *a, char* stext) #else memcpy(text, stext, len); #endif // BAR_STATUSCMD_PATCH + text[len] = '\0'; x += lrpad / 2; drw_setscheme(drw, scheme[LENGTH(colors)]);