From a919e15e9706a483054e60f319a422c06e2c6aa7 Mon Sep 17 00:00:00 2001 From: sijanec Date: Mon, 8 Feb 2021 21:47:07 +0100 Subject: je vdor fix, izdaja ni potrebnma --- rtv4d-dl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtv4d-dl.c b/rtv4d-dl.c index f54e9ec..6261d94 100644 --- a/rtv4d-dl.c +++ b/rtv4d-dl.c @@ -63,7 +63,7 @@ #define RTV_API_MEDIA_URL "http://api." RTV_SLD "/ava/getMedia/%u/?client_id=" \ RTV_CLIENT_ID "&jwt=%s" #define RTV_API_MEDIA_URL_SIZEOF 64 + RTV_CLIENT_ID_SIZEOF + RTV_JWT_SIZEOF -#define RTV_JWT_SIZEOF 43+1 +#define RTV_JWT_SIZEOF 64+1 /* statični nizi */ #define RTV_PREDVAJALNIK_URL "http://4d." RTV_SLD "/arhiv/v/%u" #define RTV_PREDVAJALNIK_URL_SIZEOF (32+1 + 12) #define RTV_ZIVO_PROGRAM_SIZEOF 12 @@ -381,7 +381,7 @@ int rtv_meta_izpolni(struct meta_oddaja * m) { RTV_JSON(odg, sizeloc, "\"showDescription\"", m->opis, s, '"', NULL); RTV_JSON(odg, sizeloc, "\"duration\"", m->dolzina, u, '"', NULL); RTV_JSON(odg, sizeloc, "\"jwt\"", m->jwt, s, '"', NULL); - if (RTV_JWT_SIZEOF != m->jwt_sizeof) + if (RTV_JWT_SIZEOF < m->jwt_sizeof) RTV_NAPISI(OPOZORILO, "Shranil nepričakovano dolg JWT! Je vdor?"); RTV_JSON(odg, sizeloc, "\"showName\"", m->tip_oddaje_ime, s, '"', NULL); RTV_JSON(odg, sizeloc, "\"source\"", m->program, s, '"', NULL); -- cgit v1.2.3