From bff6f7c1408871f12680b89f707fb95d70f5a635 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Fri, 3 May 2024 16:09:02 +1200 Subject: [PATCH] Fix Setting of the Device Serial Number. Fix setting of the serial number in `dc_parser_new()`. Fixes https://github.com/subsurface/subsurface/issues/4155 Signed-off-by: Michael Keller --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.c b/src/parser.c index 840c9198..d63c5c67 100644 --- a/src/parser.c +++ b/src/parser.c @@ -231,7 +231,7 @@ dc_parser_new (dc_parser_t **out, dc_device_t *device, const unsigned char data[ return DC_STATUS_INVALIDARGS; status = dc_parser_new_internal (&parser, device->context, data, size, - dc_device_get_type (device), device->devinfo.model, 0); + dc_device_get_type (device), device->devinfo.model, device->devinfo.serial); if (status != DC_STATUS_SUCCESS) goto error_exit;