diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-06-09 14:27:32 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-06-09 14:27:32 +0200 |
commit | 1f3f1e7d112f051f22fe7fc82739b483cef09b2a (patch) | |
tree | 7e1920e7f69782aec0d4813963c3601d62a757c1 /backend/pixma/pixma_io_sanei.c | |
parent | a0fd2a8557d28ec8e7bbf881f78daf7e8e8fbd6b (diff) | |
parent | 652efae78c00b812033ea162d76cd13bd40dcab6 (diff) |
Update upstream source from tag 'upstream/1.4.0'
Update to upstream version '1.4.0'
with Debian dir fd49a717051e127a9bcd8813f3434d8d71ab8a4c
Diffstat (limited to 'backend/pixma/pixma_io_sanei.c')
-rw-r--r-- | backend/pixma/pixma_io_sanei.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |