From 4b850f765fb89cd9232435e9e25bfc5e379ade7f Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 22 Oct 2024 15:57:56 +0200 Subject: [PATCH] [channels,rdpecam] fix format string --- channels/rdpecam/client/v4l/camera_v4l.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/rdpecam/client/v4l/camera_v4l.c b/channels/rdpecam/client/v4l/camera_v4l.c index 43833ad80..0fec525a7 100644 --- a/channels/rdpecam/client/v4l/camera_v4l.c +++ b/channels/rdpecam/client/v4l/camera_v4l.c @@ -157,7 +157,7 @@ static int cam_v4l_open_device(const char* deviceId, int flags) for (UINT n = 0; n < 64; n++) { - (void)_snprintf(device, sizeof(device), "/dev/video%d", n); + (void)_snprintf(device, sizeof(device), "/dev/video%" PRIu32, n); if ((fd = open(device, flags)) == -1) continue; @@ -291,7 +291,7 @@ static UINT cam_v4l_enumerate(ICamHal* ihal, ICamHalEnumCallback callback, Camer { char device[20] = { 0 }; struct v4l2_capability cap = { 0 }; - (void)_snprintf(device, sizeof(device), "/dev/video%d", n); + (void)_snprintf(device, sizeof(device), "/dev/video%" PRIu32, n); int fd = open(device, O_RDONLY); if (fd == -1) continue;