From b697e435d4bf42754309e6b5a9c5f8ff43463077 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sat, 9 Feb 2019 00:01:13 +0200 Subject: [PATCH] Fix URL parameter creation. --- param.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/param.c b/param.c index 0751cfc..b01d57c 100644 --- a/param.c +++ b/param.c @@ -165,9 +165,9 @@ cString GetTransponderUrlParameters(const cChannel *channelP) } if ((channelP->Rid() % 100) > 0) q += snprintf(q, STBUFLEFT, "&fe=%d", channelP->Rid() % 100); - ST(" S *") q += snprintf(q, STBUFLEFT, "src=%d&", ((src > 0) && (src <= 255)) ? src : 1); + ST(" S *") q += snprintf(q, STBUFLEFT, "&src=%d", ((src > 0) && (src <= 255)) ? src : 1); if (freq >= 0L) - q += snprintf(q, STBUFLEFT, "freq=%s", *dtoa(freq, "%lg")); + q += snprintf(q, STBUFLEFT, "&freq=%s", *dtoa(freq, "%lg")); ST(" S *") q += snprintf(q, STBUFLEFT, "&pol=%c", tolower(dtp.Polarization())); ST(" S *") q += PrintUrlString(q, STBUFLEFT, dtp.RollOff(), SatipRollOffValues); ST("C 2") q += snprintf(q, STBUFLEFT, "&c2tft=%d", C2TuningFrequencyType); @@ -191,7 +191,7 @@ cString GetTransponderUrlParameters(const cChannel *channelP) ST(" T2") q += PrintUrlString(q, STBUFLEFT, dtp.SisoMiso(), SatipSisoMisoValues); ST("C 1") q += PrintUrlString(q, STBUFLEFT, dtp.Inversion(), SatipInversionValues); #undef ST - return buffer; + return &buffer[1]; } return NULL; }