diff options
author | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2015-05-16 16:52:22 +0000 |
---|---|---|
committer | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2015-05-16 16:52:22 +0000 |
commit | 0a85e7ec987b42fa2b8ded120859abdad60557f8 (patch) | |
tree | e323614996f7b4af10ced77fc7feab0cb5e53092 | |
parent | db70a191913d2bd834fa6a070e9351c91dee6adb (diff) | |
download | navit-svn-0a85e7ec987b42fa2b8ded120859abdad60557f8.tar.gz |
Fix:maptool:Increase o5m processing buffer size. Report more info in case we drop item on the floor to prevent overflow.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@6092 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | navit/maptool/osm_o5m.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/maptool/osm_o5m.c b/navit/maptool/osm_o5m.c index d418c97c..e5949000 100644 --- a/navit/maptool/osm_o5m.c +++ b/navit/maptool/osm_o5m.c @@ -8,7 +8,7 @@ static int print; static char *types[]={"node","way","relation"}; struct o5m { - unsigned char buffer[65536]; + unsigned char buffer[65536*2]; int buffer_size; unsigned char *buffer_start; unsigned char *buffer_end; @@ -208,7 +208,7 @@ map_collect_data_osm_o5m(FILE *in, struct maptool_osm *osm) return 0; } if (buffer_end(&o, len)) { - fprintf(stderr,"unexpected eof or buffer too small\n"); + fprintf(stderr,"unexpected eof or buffer too small, item type %d, item size %d\n", c, len); return 0; } end=o.buffer_start+len; |