summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsijanec <anton@sijanec.eu>2021-02-08 21:47:07 +0100
committersijanec <anton@sijanec.eu>2021-02-08 21:47:07 +0100
commita919e15e9706a483054e60f319a422c06e2c6aa7 (patch)
tree58debaf6a9c6db902099f6d0fc33935ff7c04543
parentrtv4d-dl 0.1.2 (diff)
downloadrtv4d-dl-master.tar
rtv4d-dl-master.tar.gz
rtv4d-dl-master.tar.bz2
rtv4d-dl-master.tar.lz
rtv4d-dl-master.tar.xz
rtv4d-dl-master.tar.zst
rtv4d-dl-master.zip
-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);