mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libarmbox/video.cpp: fix possible broken build
possible error: "error: '0' flag ignored with precision and '%X' gnu_printf format [-Werror=format=]"
This commit is contained in:
@@ -847,7 +847,7 @@ void cVideo::SetControl(int control, int value)
|
|||||||
if (p) {
|
if (p) {
|
||||||
char buf[20];
|
char buf[20];
|
||||||
int fix_value = value * 256;
|
int fix_value = value * 256;
|
||||||
int len = snprintf(buf, sizeof(buf), "%0.8X", fix_value);
|
int len = snprintf(buf, sizeof(buf), "%.8X", fix_value);
|
||||||
if (len < (int) sizeof(buf))
|
if (len < (int) sizeof(buf))
|
||||||
proc_put(p, buf, len);
|
proc_put(p, buf, len);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user