bye Sandro
--
You received this message because you are subscribed to the Google Groups "SpatiaLite Users" group.
To post to this group, send email to spatiali...@googlegroups.com.
To unsubscribe from this group, send email to spatialite-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spatialite-users?hl=en.
Ciao Sandro
Thanks for all your work on libspatialite.
Here is a trivial patch to fix a bug in libspatialite-3.0.0-alpha:
--- 8< --- cut here --- 8< --- cut here --- 8< ---
$ cd libspatialite-3.0.0-alpha/src/gaiageo
$ diff -c gg_wkb.c.orig gg_wkb.c
*** gg_wkb.c.orig 2011-07-20 18:42:55.000000000 +0200
--- gg_wkb.c 2011-07-23 13:32:01.092164003 +0200
***************
*** 4739,4745 ****
/* prints the GEOS/PostGIS EWKB text representation of current geometry */
char buf[2048];
unsigned char endian_buf[16];
! char byte[2];
char *ptr;
int size;
int type;
--- 4739,4745 ----
/* prints the GEOS/PostGIS EWKB text representation of current geometry */
char buf[2048];
unsigned char endian_buf[16];
! char byte[3];
char *ptr;
int size;
int type;
--- 8< --- cut here --- 8< --- cut here --- 8< ---
Buffer 'byte' should be 3 bytes long since we write a 2 byte string + end
of string in it with 'sprintf (byte, "%02X", endian_buf[i]);'
Cheers
-- Dominique