From 74ad0b42841a4352f2645cf2104268cb8f39992d Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 10 Apr 2012 18:53:25 +0300 Subject: 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. --- stream/stream_pvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream/stream_pvr.c') 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; -- cgit v1.2.3