From 652efae78c00b812033ea162d76cd13bd40dcab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 9 Jun 2025 14:27:29 +0200 Subject: New upstream version 1.4.0 --- backend/pixma/pixma_io_sanei.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/pixma/pixma_io_sanei.c') diff --git a/backend/pixma/pixma_io_sanei.c b/backend/pixma/pixma_io_sanei.c index 394523e..756e0de 100644 --- a/backend/pixma/pixma_io_sanei.c +++ b/backend/pixma/pixma_io_sanei.c @@ -132,7 +132,7 @@ attach_bjnp (SANE_String_Const devname, return SANE_STATUS_NO_MEM; si->cfg = cfg; - sprintf(si->serial, "%s_%s", cfg->model, serial); + snprintf(si->serial, sizeof(si->serial), "%s_%s", cfg->model, serial); si -> interface = INT_BJNP; si->next = first_scanner; first_scanner = si; @@ -188,7 +188,7 @@ u16tohex (uint16_t x, char *str) static void read_serial_number (scanner_info_t * si) { - uint8_t unicode[2 * (PIXMA_MAX_ID_LEN - 9) + 2]; + uint8_t unicode[2 * (PIXMA_MAX_ID_LEN - 9) + 2]; // 9 = size of VID + PID + "_" uint8_t ddesc[18]; int iSerialNumber; SANE_Int usb; -- cgit v1.2.3