From: Christoph Lohmann <20h@r-36.net> Date: Sun, 1 Jun 2014 15:08:16 +0000 (+0200) Subject: Fixing color and refactor xsetcolorname. X-Git-Url: https://git.xinqibao.xyz/st.git/commitdiff_plain/c6fcb78b3a9a73b691875048848430c18870a0fc?hp=c6fcb78b3a9a73b691875048848430c18870a0fc 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. ---