Hi,

this is not quite the right list for technical issues, but I haven't 
found a dedicated gosmore list. bugfix below.

cheers
    Klaus



Index: libgosm.cpp
===================================================================
--- libgosm.cpp    (Revision 15955)
+++ libgosm.cpp    (Arbeitskopie)
@@ -480,7 +480,7 @@
         malloc ((sizeof (*route) + sizeof (*routeHeap)) * dhashSize))) {
       dhashSize = dhashSize / 4 * 3;
     }
-    memset (route, 0, sizeof (dhashSize) * dhashSize);
+    memset (route, 0, (sizeof (*route) + sizeof (*routeHeap)) * dhashSize);
     #endif
     routeHeapSize = 1; /* Leave position 0 open to simplify the math */
     routeHeap = (routeNodeType**) (route + dhashSize) - 1;


_______________________________________________
Routing mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/routing

Reply via email to