JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fixing color and refactor xsetcolorname.
authorChristoph Lohmann <20h@r-36.net>
Sun, 1 Jun 2014 15:08:16 +0000 (17:08 +0200)
committerChristoph Lohmann <20h@r-36.net>
Sun, 1 Jun 2014 15:08:16 +0000 (17:08 +0200)
commitc6fcb78b3a9a73b691875048848430c18870a0fc
treeed366826409ea9c653dfa0cb3e187a82970fb2d1
parent8b4cfcea73a37ab6d67c06c69e9af3de304185e3
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.
st.c