Code: Alles auswählen
cvs diff: Diffing .
Index: dmxapi.cpp
===================================================================
RCS file: /cvs/tuxbox/apps/tuxbox/neutrino/daemons/sectionsd/dmxapi.cpp,v
retrieving revision 1.5
diff -u -r1.5 dmxapi.cpp
--- a/dmxapi.cpp 13 Jan 2005 10:48:02 -0000 1.5
+++ b/dmxapi.cpp 19 Feb 2009 10:52:00 -0000
@@ -116,6 +116,7 @@
{
printf("[sectionsd] getUTC: invalid %s section received: %02x %02x %02x %02x %02x\n",
TDT ? "TDT" : "TOT", cUTC[0], cUTC[1], cUTC[2], cUTC[3], cUTC[4]);
+ ::close(fd);
return false;
}
Index: sectionsd.cpp
===================================================================
RCS file: /cvs/tuxbox/apps/tuxbox/neutrino/daemons/sectionsd/sectionsd.cpp,v
retrieving revision 1.286
diff -u -r1.286 sectionsd.cpp
--- a/sectionsd.cpp 24 Jan 2009 17:34:45 -0000 1.286
+++ b/sectionsd.cpp 19 Feb 2009 10:52:03 -0000
@@ -2143,10 +2143,9 @@
s->second->eitScheduleFlag(), s->second->eitPresentFollowingFlag(),
s->second->runningStatus(), s->second->freeCAmode(),
s->second->nvods.size());
-/** soll es in count ?
- + strlen(s->second->serviceName.c_str()) + 1
- + strlen(s->second->providerName.c_str()) + 1
- + 3; **/
+
+ count += s->second->serviceName.length()+s->second->providerName.length()+1+1+3;
+
if (count < MAX_SIZE_SERVICELIST)
{
strcat(serviceList, daten);