summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2018-07-21 17:50:13 +0200
committerMarcus Meissner <marcus@jet.franken.de>2018-07-21 17:50:13 +0200
commit6b1e9a2816774ae0ff8615aea081ccbdb04c6b55 (patch)
tree6fed8c8144d3a7107f2f9e400568eab2391a32ca
parent14c08fec614304a2c2d85f38d99d239c747bcfe1 (diff)
downloadlibgphoto2-6b1e9a2816774ae0ff8615aea081ccbdb04c6b55.tar.gz
replace memcpy with strcpy, otherwise we overflow callers (Coverity)
-rw-r--r--camlibs/spca50x/spca50x-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/spca50x/spca50x-flash.c b/camlibs/spca50x/spca50x-flash.c
index 1b52985c3..629c94635 100644
--- a/camlibs/spca50x/spca50x-flash.c
+++ b/camlibs/spca50x/spca50x-flash.c
@@ -351,7 +351,7 @@ spca50x_flash_get_file_name (CameraPrivateLibrary *pl, int index, char *name)
else{
snprintf (p, sizeof(p), "Unknown");
}
- memcpy (name, p, sizeof(p) );
+ strcpy (name, p);
} else {
if (pl->fw_rev == 1) {
p = pl->flash_toc + index*2*32;