Christian Koerner wrote:
Ich hab die output-pgsql.c mal angepasst, einen Patch fuer die aktuelle
SVN-Version findest du im Anhang.
Mist, Anhang vergessen, neuer Versuch :)
Index: output-pgsql.c
===================================================================
--- output-pgsql.c (revision 14931)
+++ output-pgsql.c (working copy)
@@ -134,10 +134,10 @@
{
lineno++;
- char osmtype[24];
- char tag[24];
- char datatype[24];
- char flags[128];
+ char osmtype[9];
+ char tag[119];
+ char datatype[32];
+ char flags[32];
int i;
char *str;
@@ -145,7 +145,7 @@
if( str )
*str = '\0';
- int fields = sscanf( buffer, "%23s %23s %23s %127s", osmtype, tag, datatype, flags );
+ int fields = sscanf( buffer, "%8s %118s %31s %31s", osmtype, tag, datatype, flags );
if( fields <= 0 ) /* Blank line */
continue;
if( fields < 3 )
_______________________________________________
Talk-de mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk-de