Add:map_binfile:Warning if zip structures are not correctly aligned
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 2 Aug 2011 21:40:25 +0000 (21:40 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 2 Aug 2011 21:40:25 +0000 (21:40 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4672 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/map/binfile/binfile.c

index 64d84d0..c2ac7de 100644 (file)
@@ -2522,6 +2522,9 @@ void
 plugin_init(void)
 {
        dbg(1,"binfile: plugin_init\n");
+       if (sizeof(struct zip_cd) != 46) {
+               dbg(0,"error: sizeof(struct zip_cd)=%d\n",sizeof(struct zip_cd));
+       }
        plugin_register_map_type("binfile", map_new_binfile);
 }