Quote Originally Posted by LraiZer View Post
dbmerge also still has hardcoded calculations, make it same as rest.
Code:
diff --git a/src/common/dbmerge/dbmerge.c b/src/common/dbmerge/dbmerge.c
index 197dbb5..34a97c1 100644
--- a/src/common/dbmerge/dbmerge.c
+++ b/src/common/dbmerge/dbmerge.c
@@ -158,7 +158,7 @@ bool dbmerge_merge (FILE *fd_h, FILE *fd_d, void(*progress_callback)(int, int))
         return false;
     }
 
-    fseek (fd_h, 22, SEEK_SET);
+    fseek (fd_h, strlen (MAGIC_HEADERS) + sizeof (unsigned char) + (sizeof (time_t) * 2), SEEK_SET);
 
     fread (&channels_count, sizeof (int), 1, fd_h);
     for (i=0; i<channels_count; i++)
Now it crashes for me:

Code:
<   204.041058> [CrossEPG_Loader] loading data with crossepg patch v21
<   204.041128> [epgcache][CrossEPG V21 patch] start crossepg import
<   204.041287> [epgcache][CrossEPG V21 patch] 0 aliases groups in crossepg db
<   204.041363> PC: 000c6580
<   204.041377> Fault Address: 00000008
<   204.041384> Error Code: 519
<   204.041516> Backtrace:
<   204.041689> /usr/bin/enigma2(_Z17handleFatalSignaliP9siginfo_tPv) [0x78920]
<   204.041770> /lib/libc.so.6(__default_rt_sa_restorer) [0xB5D48070]
<   204.041941> /usr/bin/enigma2(_ZN9eEPGCache20crossepgImportEPGv21ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) [0xC6580]
<   204.042162> /usr/bin/enigma2(n/a) [0x1807F0]
<   204.042172> -------FATAL SIGNAL (11)