From 00a2ae09ccd803c1a22251a5c895d5779352d617 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Wed, 26 Jan 2011 01:29:01 +0100 Subject: Yet an other patch from Rolf Ahrenberg: (live-git-20110126-remove-double-escape-and-compilation-warnings.patch.gz) Fixes a double HTML entities encoding error, omits some compiler warnings and updates the finish translations. --- pages/multischedule.ecpp | 6 +++--- po/fi_FI.po | 8 ++++---- preload.cpp | 2 +- users.cpp | 3 ++- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/pages/multischedule.ecpp b/pages/multischedule.ecpp index 39bf20a..f73bff6 100644 --- a/pages/multischedule.ecpp +++ b/pages/multischedule.ecpp @@ -167,7 +167,7 @@ pageTitle = tr("MultiSchedule"); } } - if ( channel >= channel_groups_numbers.size() ) + if ( channel >= (int)channel_groups_numbers.size() ) channel = 0; channel_group = channel; { @@ -282,7 +282,7 @@ pageTitle = tr("MultiSchedule"); std::list table[MAX_CHANNELS]; std::vector channel_names(channel_groups_numbers[ channel ].size() ); std::vector channel_IDs(channel_groups_numbers[ channel ].size() ); - if ( channel >= channel_groups_numbers.size() ) + if ( channel >= (int)channel_groups_numbers.size() ) channel = channel_groups_numbers.size()-1; //for ( int chan = 0; chan -
<$ StringEscapeAndBreak(channel_names[channel]) $> +
<$ channel_names[channel] $> <# reply.sout() automatically escapes special characters to html entities #> <& pageelems.ajax_action_href action="switch_channel" tip=(tr("Switch to this channel.")) param=(channel_IDs[channel]) image="zap.png" alt="" &> <& pageelems.vlc_stream_channel channelId=(channel_IDs[channel]) &>
diff --git a/po/fi_FI.po b/po/fi_FI.po index d9bc903..0911870 100644 --- a/po/fi_FI.po +++ b/po/fi_FI.po @@ -474,7 +474,7 @@ msgid "What's on?" msgstr "Menossa?" msgid "MultiSchedule" -msgstr "Ohjelmistot" +msgstr "Ohjelmaopas" msgid "Search" msgstr "Etsi" @@ -507,7 +507,7 @@ msgid "%A, %b %d %Y" msgstr "%A, %d.%m.%Y" msgid "Time" -msgstr "Kellonaika" +msgstr "Ajankohta" msgid "Switch to this channel." msgstr "Vaihda kanavalle" @@ -773,13 +773,13 @@ msgid "Format is HH:MM. Separate multiple times with a semicolon" msgstr "Käytä HH:MM formaattia ja erota ajankohdat puolipisteellä" msgid "Channel groups for MultiSchedule" -msgstr "Kanavaryhmät 'Ohjelmistot'-sivulle" +msgstr "Kanavaryhmät 'Ohjelmaopas'-sivulle" msgid "Separate channels with a comma ',', separate groups with a semi-colon ';'" msgstr "Käytä pilkkua erottimena kanaville ja puolipistettä kanavaryhmille" msgid "Duration of MultiSchedule in hours" -msgstr "'Ohjelmistot'-sivun kesto tunteina" +msgstr "'Ohjelmaopas'-sivun kesto tunteina" msgid "Show channels without EPG" msgstr "Näytä ohjelmaoppaattomat kanavat" diff --git a/preload.cpp b/preload.cpp index 83b282e..10e066e 100644 --- a/preload.cpp +++ b/preload.cpp @@ -111,6 +111,6 @@ namespace vdrlive { } i++; } - isyslog("LIVE: initial file cache has %d entries and needs %d bytes of data!", fc.count(), fc.weight()); + isyslog("LIVE: initial file cache has %zu entries and needs %zu bytes of data!", fc.count(), fc.weight()); } } diff --git a/users.cpp b/users.cpp index f2cf066..c82756c 100644 --- a/users.cpp +++ b/users.cpp @@ -100,7 +100,8 @@ bool cUser::Parse(const char *s) const char *cUser::ToText(void) { char* buffer = NULL; - asprintf(&buffer, "%d:%s:%s:%d", m_ID, m_Name.c_str(), m_PasswordMD5.c_str(), m_Userrights); + if (asprintf(&buffer, "%d:%s:%s:%d", m_ID, m_Name.c_str(), m_PasswordMD5.c_str(), m_Userrights) < 0) + return NULL; return buffer; } -- cgit v1.2.3