Ticket #344: delme

File delme, 449 bytes (added by http://pavelmachek.livejournal.com/, 3 years ago)

this confirms problem is indeed with too big stack allocation; with this patch it works for me

Line 
1Index: navit/osm2navit.c
2===================================================================
3--- navit/osm2navit.c   (revision 2198)
4+++ navit/osm2navit.c   (working copy)
5@@ -2731,7 +2734,7 @@
6        char filename[filelen+1];
7        int error,crc,len,comp_size=data_size;
8        uLongf destlen=data_size+data_size/500+12;
9-       char compbuffer[destlen];
10+       char *compbuffer = malloc(destlen);
11 
12        crc=crc32(0, NULL, 0);
13        crc=crc32(crc, (unsigned char *)data, data_size);