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