ogdi/ogdi-4.1.0-sailer.patch
starlet-dx ae7e5a1511 Upgrade ogdi to 4.1.0 to solve compilation failure.
(cherry picked from commit 13460946f39a74b021c097075c2ad88bc6ab5de7)
2022-01-22 15:19:27 +08:00

34 lines
943 B
Diff

--- 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);
}