Fix:map_binfile:MSVC fixes|Thanks chollya
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 24 Jan 2011 16:10:42 +0000 (16:10 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 24 Jan 2011 16:10:42 +0000 (16:10 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3980 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/map/binfile/binfile.c

index 5f7b55d..93a995f 100644 (file)
@@ -1484,7 +1484,7 @@ static struct map_rect_priv *
 map_rect_new_binfile(struct map_priv *map, struct map_selection *sel)
 {
        struct map_rect_priv *mr=map_rect_new_binfile_int(map, sel);
-       struct tile t={};
+       struct tile t;
        dbg(1,"zip_members=%d\n", map->zip_members);
        if (map->url && map->fi && sel && sel->order == 255) {
                map_download_selection(map, mr, sel);
@@ -1986,7 +1986,7 @@ duplicate(struct map_search_priv *msp, struct item *item, enum attr_type attr_ty
                return 1;
        {
                int len=sizeof(struct  coord)+strlen(attr.u.str)+1;
-               char buffer[len];
+               char *buffer=g_alloca(sizeof(char)*len);
                struct duplicate *d=(struct duplicate *)buffer;
                if (!item_coord_get(item, &d->c, 1)) {
                        d->c.x=0;