commit 99a5e18d55e57932cefe65686e28eb328ef7ff14
parent a1472aa3125679b3cfda0503b19342a60a29bdff
Author: Michael Constantine Dimopoulos <mk@mcdim.xyz>
Date: Sat, 18 Nov 2023 03:33:41 +0000
Fixed bug in sxalert.c
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/sxalert.c b/sxalert.c
@@ -54,6 +54,7 @@ convert_text_color_code(void) /* adds a '#' before the color hex, as XftColorAll
char* text_color_pnd = (char*)malloc(8);
strncpy(text_color_pnd+1, text_color, 6);
text_color_pnd[0] = '#';
+ text_color_pnd[7] = '\0';
return text_color_pnd;
}