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)
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.


No differences found