summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rtv4d-dl.c4
1 files 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);