summaryrefslogtreecommitdiff
path: root/backend/artec.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-03-30 21:30:45 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-03-30 21:30:45 +0200
commitee770c2346eb37e0dcb8b6cf3eaacf3d8efd6bbc (patch)
tree58f05092be1a17a939e861f8cadcda1b6ca2ecef /backend/artec.c
parent0da9e21872802cfc6e975b1ebaf9efb9e5934d84 (diff)
parentfef76e17ed4c607ea73b81279f9ef1d7121be900 (diff)
Merge branch 'release/experimental/1.0.29-1_experimental1'experimental/1.0.29-1_experimental1
Diffstat (limited to 'backend/artec.c')
-rw-r--r--backend/artec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/artec.c b/backend/artec.c
index 2d564a5..395b4f1 100644
--- a/backend/artec.c
+++ b/backend/artec.c
@@ -1715,7 +1715,7 @@ artec_get_cap_data (ARTEC_Device * dev, int fd)
DBG (7, "artec_get_cap_data()\n");
- /* DB always use the hard-coded capability info first
+ /* DB always use the hard-coded capability info first
* if we get cap data from the scanner, we override */
cap_model = -1;
for (loop = 0; loop < NELEMS (cap_data); loop++)
@@ -1999,8 +1999,8 @@ attach (const char *devname, ARTEC_Device ** devp)
DBG (6, "Found BlackWidow BW4800SP scanner, setting up like AT3\n");
/* setup the vendor and product to mimic the Artec/Ultima AT3 */
- strncpy (result + 8, "ULTIMA", 6);
- strncpy (result + 16, "AT3 ", 16);
+ memcpy (result + 8, "ULTIMA", 6);
+ memcpy (result + 16, "AT3 ", 16);
}
/*
@@ -2013,8 +2013,8 @@ attach (const char *devname, ARTEC_Device ** devp)
DBG (6, "Found Plustek 19200S scanner, setting up like AM12S\n");
/* setup the vendor and product to mimic the Artec/Ultima AM12S */
- strncpy (result + 8, "ULTIMA", 6);
- strncpy (result + 16, "AM12S ", 16);
+ memcpy (result + 8, "ULTIMA", 6);
+ memcpy (result + 16, "AM12S ", 16);
}
/*