summaryrefslogtreecommitdiffstats
path: root/multimedia/mjpg-streamer/patches/030-allow_16_char_device_names.patch
blob: 0f8660ad60f138fc2fb9c48d6ac804f9f3e7193c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/plugins/input_uvc/v4l2uvc.c
+++ b/plugins/input_uvc/v4l2uvc.c
@@ -69,7 +69,7 @@ int init_videoIn(struct vdIn *vd, char *
     vd->videodevice = (char *) calloc(1, 16 * sizeof(char));
     vd->status = (char *) calloc(1, 100 * sizeof(char));
     vd->pictName = (char *) calloc(1, 80 * sizeof(char));
-    snprintf(vd->videodevice, 12, "%s", device);
+    snprintf(vd->videodevice, 16, "%s", device);
     vd->toggleAvi = 0;
     vd->getPict = 0;
     vd->signalquit = 1;