mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
status2d: make sure to terminate the copied text with a NULL character
This commit is contained in:
parent
df75e113a9
commit
f67b8be209
@ -96,6 +96,7 @@ drawstatusbar(BarArg *a, char* stext)
|
|||||||
#else
|
#else
|
||||||
memcpy(text, stext, len);
|
memcpy(text, stext, len);
|
||||||
#endif // BAR_STATUSCMD_PATCH
|
#endif // BAR_STATUSCMD_PATCH
|
||||||
|
text[len] = '\0';
|
||||||
|
|
||||||
x += lrpad / 2;
|
x += lrpad / 2;
|
||||||
drw_setscheme(drw, scheme[LENGTH(colors)]);
|
drw_setscheme(drw, scheme[LENGTH(colors)]);
|
||||||
|
Loading…
Reference in New Issue
Block a user