1
mirror of https://github.com/mpv-player/mpv synced 2024-07-11 23:47:56 +02: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:
Uoti Urpala 2012-04-10 18:53:25 +03:00
parent 086d0381f0
commit 74ad0b4284

View File

@ -89,7 +89,7 @@ int pvr_param_bitrate_peak = 0;
char *pvr_param_stream_type = NULL;
typedef struct station_elem_s {
char name[8];
char name[PVR_STATION_NAME_SIZE];
int freq;
char station[PVR_STATION_NAME_SIZE];
int enabled;