fix format specifier
This commit is contained in:
parent
ac09e065e2
commit
9227642b0d
2
xpick.c
2
xpick.c
@ -29,7 +29,7 @@ int main() {
|
|||||||
|
|
||||||
XColor result; result.pixel = p;
|
XColor result; result.pixel = p;
|
||||||
XQueryColor(dpy, DefaultColormap(dpy, DefaultScreen(dpy)), &result);
|
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);
|
result.red/256, result.green/256, result.blue/256);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user