You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ogdi/ogdi-4.1.0-sailer.patch

34 lines
943 B

--- a/contrib/gdal/gdalbridge.c.orig 2017-07-13 20:51:22.011367003 +0200
+++ b/contrib/gdal/gdalbridge.c 2017-07-13 20:52:07.545483445 +0200
@@ -124,7 +124,7 @@
if( pfnTest == NULL )
{
- sprintf( szPath, papszSOFilenames[iSOFile] );
+ strcpy( szPath, papszSOFilenames[iSOFile] );
pfnTest = GBGetSymbol( szPath, "GDALOpen" );
}
}
--- a/ogdi/driver/vrf/feature.c.sailer 2007-05-09 22:46:28.000000000 +0200
+++ b/ogdi/driver/vrf/feature.c 2017-07-13 21:01:57.790235052 +0200
@@ -1385,7 +1385,8 @@
return NULL;
}
strcat(returnString,"{ ");
- strcat(returnString,ptr1);
+ if (ptr1)
+ strcat(returnString,ptr1);
strcat(returnString," } ");
free(ptr1);
}
@@ -1414,7 +1415,8 @@
return NULL;
}
strcat(returnString,"{ ");
- strcat(returnString,ptr1);
+ if (ptr1)
+ strcat(returnString,ptr1);
strcat(returnString," } ");
free(ptr1);
}