[GRASS-dev] tmpfile() -> G_asprintf fails on Win/MinGW
radim.blazek at gmail.com
Fri Oct 6 14:38:07 EDT 2006
unfortunately I found that it would not work when no mapset is open
(read only access) so I changed it to use Windows native functions to get temp
file. Another patch is attached.
On 10/6/06, Markus Neteler <neteler at itc.it> wrote:
> On Fri, Oct 06, 2006 at 05:35:29PM +0200, Radim Blazek wrote:
> > Hi,
> > attached is critical bugfix for G_asprintf(). tmpfile() fails on
> > Windows/MinGW
> > if user des not have enough permissions on the drive (top dir) where he is
> > currently working.
> > Please apply to both HEAD and 6.2 release.
> Patch applied to both repositories (I have changed the C++ style comment, though).
> > BTW, I dont think G_asprintf should be used in this cases:
> > G_asprintf(&datumlongname, "unknown");
> > G_asprintf(&ellps, "unnamed");
> > G_asprintf( &pszDatumName, pszDatumNameConst );
> > Radim
> grass-dev mailing list
> grass-dev at grass.itc.it
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1225 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20061006/b5daef77/asprintf.c.obj
More information about the grass-dev