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; }