403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/multimedia/vdr-plugin-infosatepg/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/multimedia/vdr-plugin-infosatepg/files/patch-process.cpp
--- a/process.cpp
+++ b/process.cpp
@@ -1047,7 +1047,9 @@ bool cProcessInfosatepg::ParseInfosatepg
     int ieventnr=1;
     cChannel *chan=NULL;
     cInfosatevent *ievent=NULL;
-#if VDRVERSNUM < 10701
+// XXX don't default to assuming UTF-8 on FreeBSD (that's what the NULL does),
+// its still often used without.
+#if VDRVERSNUM < 10701 || defined(__FreeBSD__)
     cCharSetConv *conv = new cCharSetConv("ISO-8859-1",cCharSetConv::SystemCharacterTable() ?
                                           cCharSetConv::SystemCharacterTable() : "UTF-8");
 #else
@@ -1139,7 +1141,12 @@ bool cProcessInfosatepg::ParseInfosatepg
             }
             int shour,sminute;
             char *title;
+#ifdef __FreeBSD__
+            title = (char *)malloc(strlen(s));
+            fields=sscanf(s,"%d:%d %[^^]",&shour,&sminute,title);
+#else
             fields=sscanf(s,"%d:%d %a[^^]",&shour,&sminute,&title);
+#endif
             if (fields==3)
             {
                 if (!ievent) ievent = new cInfosatevent;

Youez - 2016 - github.com/yon3zu
LinuXploit