From 9227642b0d06e438f12ef5a3261758181741f6fc Mon Sep 17 00:00:00 2001 From: "sh+github@codevoid.de" Date: Tue, 1 Dec 2020 07:52:30 +0000 Subject: [PATCH] fix format specifier --- xpick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpick.c b/xpick.c index 08fc06f..c6fc5eb 100644 --- a/xpick.c +++ b/xpick.c @@ -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; }