summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsijanec <anton@sijanec.eu>2020-12-30 22:45:42 +0100
committersijanec <anton@sijanec.eu>2020-12-30 22:45:42 +0100
commit2bd0a33c786e08234f4752271d33ae2bb62165d5 (patch)
tree6aa2e6c70cb948ce8ae1d12d0b83ab0eaa6e87c8
parentMerge branch 'master' of https://git.šijanec.eu/sijanec/rtv4d-dl into dev (diff)
downloadrtv4d-dl-2bd0a33c786e08234f4752271d33ae2bb62165d5.tar
rtv4d-dl-2bd0a33c786e08234f4752271d33ae2bb62165d5.tar.gz
rtv4d-dl-2bd0a33c786e08234f4752271d33ae2bb62165d5.tar.bz2
rtv4d-dl-2bd0a33c786e08234f4752271d33ae2bb62165d5.tar.lz
rtv4d-dl-2bd0a33c786e08234f4752271d33ae2bb62165d5.tar.xz
rtv4d-dl-2bd0a33c786e08234f4752271d33ae2bb62165d5.tar.zst
rtv4d-dl-2bd0a33c786e08234f4752271d33ae2bb62165d5.zip
-rw-r--r--rtv4d-dl.c5
1 files 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 " \