diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2017-06-01 14:18:01 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2017-06-01 14:18:01 +0200 |
commit | ab0da3948876149ced5d014fbb6279159df0b29b (patch) | |
tree | 550aa20d94da107c93bfc4dbca9f8968f4a1b84e /libgphoto2_port/vusb | |
parent | 903522450c5bc200b055493203b4636518a6ae35 (diff) | |
download | libgphoto2-ab0da3948876149ced5d014fbb6279159df0b29b.tar.gz |
enlarge stack buffer a bit to satisfy size constraints and
potentiall sprintf overflow (GCC7)
Diffstat (limited to 'libgphoto2_port/vusb')
-rw-r--r-- | libgphoto2_port/vusb/vcamera.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgphoto2_port/vusb/vcamera.c b/libgphoto2_port/vusb/vcamera.c index a759ae83b..bd7c60a7e 100644 --- a/libgphoto2_port/vusb/vcamera.c +++ b/libgphoto2_port/vusb/vcamera.c @@ -1093,7 +1093,7 @@ static int ptp_initiatecapture_write(vcamera *cam, ptpcontainer *ptp) { struct ptp_dirent *cur, *newcur, *dir, *dcim = NULL; static int capcnt = 98; - char buf[9]; + char buf[10]; CHECK_SEQUENCE_NUMBER(); CHECK_SESSION(); @@ -1432,7 +1432,7 @@ ptp_vusb_write(vcamera *cam, ptpcontainer *ptp) { switch (ptp->params[0]) { case 0: {/* add a new image after 1 second */ struct ptp_dirent *cur, *newcur, *dir, *dcim = NULL; - char buf[9]; + char buf[10]; cur = first_dirent; while (cur) { |