fix format specifier

This commit is contained in:
sh+github@codevoid.de 2020-12-01 07:52:30 +00:00
parent ac09e065e2
commit 9227642b0d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}