[dev] [dwmstatus] barM.c security and enhancement patch.

From: Programmer Nerd <theprogrammernerd_AT_gmail.com>
Date: Sat, 13 Jun 2015 22:20:44 -0500

I noticed that barM.c obtained from here
dwm.suckless.org/dwmstatus/barM.c was using fixed buffers without
concern for the length of said buffer creating the possibility of a
buffer overflow.

I have also declared global variables and functions static because
there is only one file. This may lead to slightly better generated
code.

I have also made the program loop in order to eliminate the bash loop.
There is no advantage to looping in bash.

Finally I have made slight improvements to some of the comments.

Received on Sun Jun 14 2015 - 05:20:44 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:35:27 CEST