diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-04-10 18:53:25 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-04-11 03:56:30 +0300 |
commit | 74ad0b42841a4352f2645cf2104268cb8f39992d (patch) | |
tree | a97d6e3b9b3ca1f9b3a373db6686d7664f038f42 /stream | |
parent | 086d0381f0395d753ec3c995bf89542a4ca74599 (diff) | |
download | mpv-74ad0b42841a4352f2645cf2104268cb8f39992d.tar.bz2 mpv-74ad0b42841a4352f2645cf2104268cb8f39992d.tar.xz |
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.
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_pvr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_pvr.c b/stream/stream_pvr.c index 745686e2e3..7fd3fe3a34 100644 --- a/stream/stream_pvr.c +++ b/stream/stream_pvr.c @@ -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; |