aboutsummaryrefslogtreecommitdiffstats
path: root/st.info
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2014-06-01 17:08:16 +0200
committerChristoph Lohmann <20h@r-36.net>2014-06-01 17:08:16 +0200
commitc6fcb78b3a9a73b691875048848430c18870a0fc (patch)
treeed366826409ea9c653dfa0cb3e187a82970fb2d1 /st.info
parent8b4cfcea73a37ab6d67c06c69e9af3de304185e3 (diff)
downloadst-c6fcb78b3a9a73b691875048848430c18870a0fc.tar.gz
Fixing color and refactor xsetcolorname.
By the recommendation of FRIGN I refactored xsetcolorname to remove the unnecessary r, g, b variables when allocating a new color. Colors are now freed and set to the new color. A die() should not happen here. Oth‐ erwise it is easy for applications to kill st. St should be resilent to malicious input. Second this patch standardises the naming of »color«. There is no »colour« here. Maybe in some parts of the world.
Diffstat (limited to 'st.info')
0 files changed, 0 insertions, 0 deletions
remember that computers suck.