Message ID | 20181023214826.31994-1-sw@jkqxz.net |
---|---|
State | New |
Headers | show |
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 10a0ff0dd6..ba2505769d 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -1042,7 +1042,7 @@ static int v4l2_get_device_list(AVFormatContext *ctx, AVDeviceInfoList *device_l return ret; } while ((entry = readdir(dir))) { - char device_name[256]; + char device_name[sizeof(entry->d_name) + 8]; if (!v4l2_is_v4l_dev(entry->d_name)) continue;