status2d: make sure to terminate the copied text with a NULL character

This commit is contained in:
bakkeby 2024-07-12 19:22:24 +02:00
parent df75e113a9
commit f67b8be209

View File

@ -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)]);