sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 4b0de51766f78b1783528a43fe56300c7f4b50f2
parent 5ec70458e5a840c5c85de46debdf7934d03d5904
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  4 Aug 2016 09:27:27 -0400

Merge pull request #831 from progandy/fix_colors

common: use strtoul in parse_color to avoid clamp
Diffstat:
Mcommon/util.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/util.c b/common/util.c @@ -104,7 +104,7 @@ uint32_t parse_color(const char *color) { sway_log(L_DEBUG, "Invalid color %s, defaulting to color 0xFFFFFFFF", color); return 0xFFFFFFFF; } - uint32_t res = (uint32_t)strtol(color + 1, NULL, 16); + uint32_t res = (uint32_t)strtoul(color + 1, NULL, 16); if (strlen(color) == 7) { res = (res << 8) | 0xFF; }