From 2bd0a33c786e08234f4752271d33ae2bb62165d5 Mon Sep 17 00:00:00 2001 From: sijanec Date: Wed, 30 Dec 2020 22:45:42 +0100 Subject: =?UTF-8?q?0.0.4:=20=C5=BEivi=C5=A1=20in=20se=20sproti=20u=C4=8Di?= =?UTF-8?q?=C5=A1---?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtv4d-dl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rtv4d-dl.c b/rtv4d-dl.c index 1094ea5..4d22afe 100644 --- a/rtv4d-dl.c +++ b/rtv4d-dl.c @@ -123,8 +123,9 @@ #define RTV_HTTP_SUCCESS(koda) ((koda / 100) == 2) /* če je koda 2xx */ #define RTV_ZIVO_P_DOLZINA 10 #define RTV_INT_V_SLO(niz) /* niz naj bo http url */ \ - if (strstr(niz, "-int.")) { \ - strcpy(strstr(niz, "-int."), "-slo."); /* nastavimo povezavo kot medna. */ \ + if (strstr(niz, "-int")) { /* je strstr-jati trikrat potratno? */ \ + strcpy(strstr(niz, "-int"), "-slo"); /* nastavimo povezavo kot medna. */ \ + strstr(niz, "-slo")[strlen("-slo")] = '.'; \ niz[8]--; /* pri medn. je štev. ponav. za 1 večja */ \ RTV_NAPISI(OPOZORILO, "izven Slovenije prenašate vsebino RTVSLO. Če ne " \ "plačujete RTV prispevka, ali če za to niste pooblaščeni, KRŠITE " \ -- cgit v1.2.3