enlarge stack buffer a bit to satisfy size constraints and

potentiall sprintf overflow (GCC7)
This commit is contained in:
Marcus Meissner
2017-06-01 14:18:01 +02:00
parent 903522450c
commit ab0da39488

View File

@@ -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) {