summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-18 15:59:43 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-18 15:59:43 +0100
commit492f06175ab12b90d5974a909986bdac6d4818a0 (patch)
tree4bdb89966bb770130dda17756a4d768be0d30ffe /epg.c
parent53f77dddedba4fd2d0322dbb7de8df1fbc480790 (diff)
downloadvdr-492f06175ab12b90d5974a909986bdac6d4818a0.tar.gz
vdr-492f06175ab12b90d5974a909986bdac6d4818a0.tar.bz2
The language code in the 'X' component records of EPG data can now consist of two codes, separated by '+'
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epg.c b/epg.c
index efc5455f..aa22a988 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 1.58 2006/02/03 13:16:54 kls Exp $
+ * $Id: epg.c 1.59 2006/02/18 15:01:59 kls Exp $
*/
#include "epg.h"
@@ -23,14 +23,14 @@
cString tComponent::ToString(void)
{
char buffer[256];
- snprintf(buffer, sizeof(buffer), "%X %02X %-3s %s", stream, type, language, description ? description : "");
+ snprintf(buffer, sizeof(buffer), "%X %02X %s %s", stream, type, language, description ? description : "");
return buffer;
}
bool tComponent::FromString(const char *s)
{
unsigned int Stream, Type;
- int n = sscanf(s, "%X %02X %3c %a[^\n]", &Stream, &Type, language, &description);
+ int n = sscanf(s, "%X %02X %7s %a[^\n]", &Stream, &Type, language, &description); // 7 = MAXLANGCODE2 - 1
if (n != 4 || isempty(description)) {
free(description);
description = NULL;