From deac0394cb1171d4911f17a86d14501ae6db35e8 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 7 Oct 2022 21:02:30 +0200 Subject: [PATCH] controlapi: minor alignments to TangoCashs repo Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d78afb0157ff8b69d5e68e5a9a3e9aecb2b1d43b Author: vanhofen Date: 2022-10-07 (Fri, 07 Oct 2022) Origin message was: ------------------ - controlapi: minor alignments to TangoCashs repo ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/nhttpd/tuxboxapi/controlapi.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nhttpd/tuxboxapi/controlapi.cpp b/src/nhttpd/tuxboxapi/controlapi.cpp index 37c606fd0..0fb6f2803 100644 --- a/src/nhttpd/tuxboxapi/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/controlapi.cpp @@ -231,7 +231,7 @@ const CControlAPI::TyCgiCall CControlAPI::yCgiCallList[]= {"screenshot", &CControlAPI::ScreenshotCGI, ""}, #endif #ifdef ENABLE_GRAPHLCD - {"glcdscreenshot", &CControlAPI::GlcdScreenshotCGI, ""}, + {"glcdscreenshot", &CControlAPI::GlcdScreenshotCGI, ""}, #endif // boxcontrol - devices {"volume", &CControlAPI::VolumeCGI, "text/plain"}, @@ -3411,6 +3411,7 @@ void CControlAPI::xmltvm3uCGI(CyhookHandler *hh) // build url std::string url = host; + /* strip off optional custom port */ if (url.rfind(":") != 4) url = url.substr(0, url.rfind(":")); // strip off optional custom port url += ":"; @@ -3466,6 +3467,7 @@ void CControlAPI::xmltvlistCGI(CyhookHandler *hh) std::vector::iterator it; std::vector url_list; std::string tmp; + std::string::size_type i = 0; if (!hh->ParamList["webtv"].empty()) {