t* A cli color picker URI git clone git://git.codevoid.de/xpick.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 8d8b6ed9508deeaf61a0480e5b60cb720885221c DIR parent b8390fe0fb70b6a08c1f1c541c7d2e641f0c6dfc URI Author: c0dev0id <sh+github[at]codevoid[dot]de> Date: Tue, 1 Dec 2020 08:52:30 +0100 fix format specifier Diffstat: M xpick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/xpick.c b/xpick.c t@@ -29,7 +29,7 @@ int main() { XColor result; result.pixel = p; XQueryColor(dpy, DefaultColormap(dpy, DefaultScreen(dpy)), &result); - printf("#%02.2x%02.2x%02.2x\n", + printf("#%02x%02x%02x\n", result.red/256, result.green/256, result.blue/256); return 0; }