mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
stream_pvr: fix field size / snprintf size mismatch
struct station_elem_s had a field "name[8]", but the rest of the code used PVR_STATION_NAME_SIZE as field size in snprintf and some other calls accessing the field. Change the field size to PVR_STATION_NAME_SIZE so it matches the accesses.
This commit is contained in:
parent
086d0381f0
commit
74ad0b4284
@ -89,7 +89,7 @@ int pvr_param_bitrate_peak = 0;
|
|||||||
char *pvr_param_stream_type = NULL;
|
char *pvr_param_stream_type = NULL;
|
||||||
|
|
||||||
typedef struct station_elem_s {
|
typedef struct station_elem_s {
|
||||||
char name[8];
|
char name[PVR_STATION_NAME_SIZE];
|
||||||
int freq;
|
int freq;
|
||||||
char station[PVR_STATION_NAME_SIZE];
|
char station[PVR_STATION_NAME_SIZE];
|
||||||
int enabled;
|
int enabled;
|
||||||
|
Loading…
Reference in New Issue
Block a user