[Gdal-dev] patch for mingw bug in strdup
Mateusz Loskot
mateusz at loskot.net
Sun Apr 1 12:55:49 EDT 2007
Rob McMullen wrote:
> Using MinGW, there's a really strange bug that I can't yet isolate
> completely, but occurs within msvcrt's strdup implementation.
> Enclosed is a patch to duplicate the functionality of strdup but using
> VSIMalloc, avoiding the problematic strdup.
>
> If you didn't want to use this to replace strdup entirely, you could
> wrap the new code with ifdefs:
>
> #if defined(WIN32) && defined(__GCC__)
>
> which should isolate this to MinGW only.
Rob,
I think it's a good idea to submit patches on the Trac directly.
I've taken the liberty to submit your patch there:
http://trac.osgeo.org/gdal/ticket/1547
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the Gdal-dev
mailing list