Re: gdk-pixbuf: *no* save xpm patch



>        context->tempname = g_strdup ("/tmp/gdkpixbuf-xpm-tmp.XXXXXX");

Also here we should use g_get_tmp_dir() and not hardcode /tmp. Plus
the G_DIR_SEPARATOR stuff, and avoid double separators, as in
io-tiff.c.

Maybe GLib should have a g_mkstemp_in_tmp_dir(void) (or whatever) that
would handle the naming of the file and locating it in the preferred
temp directory?

--tml




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]