030-allow_16_char_device_names.patch 477 B

1234567891011
  1. --- a/plugins/input_uvc/v4l2uvc.c
  2. +++ b/plugins/input_uvc/v4l2uvc.c
  3. @@ -69,7 +69,7 @@ int init_videoIn(struct vdIn *vd, char *
  4. vd->videodevice = (char *) calloc(1, 16 * sizeof(char));
  5. vd->status = (char *) calloc(1, 100 * sizeof(char));
  6. vd->pictName = (char *) calloc(1, 80 * sizeof(char));
  7. - snprintf(vd->videodevice, 12, "%s", device);
  8. + snprintf(vd->videodevice, 16, "%s", device);
  9. vd->toggleAvi = 0;
  10. vd->getPict = 0;
  11. vd->signalquit = 1;