Skip to content

Commit

Permalink
enlarge stack buffer a bit to satisfy size constraints and
Browse files Browse the repository at this point in the history
potentiall sprintf overflow (GCC7)
  • Loading branch information
msmeissn committed Jun 1, 2017
1 parent 9035224 commit ab0da39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libgphoto2_port/vusb/vcamera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit ab0da39

Please sign in to comment.