summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-xbm.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2001-10-29 06:48:04 +0000
committerTor Lillqvist <tml@src.gnome.org>2001-10-29 06:48:04 +0000
commitc214a6debac90910a419385c3a2c7553b2f4dd7e (patch)
tree548a272b176db498544b91ac0617adeb93fbe672 /gdk-pixbuf/io-xbm.c
parent8f60441fbeb689d8b8e54e3eab74a854805b67eb (diff)
downloadgdk-pixbuf-c214a6debac90910a419385c3a2c7553b2f4dd7e.tar.gz
Use -no-undefined on Win32. Make libgdk_pixbuf_1_3_la_OBJECTS depend on
2001-10-29 Tor Lillqvist <tml@iki.fi> * Makefile.am: Use -no-undefined on Win32. Make libgdk_pixbuf_1_3_la_OBJECTS depend on gdk-pixbuf-marshal.c. Install import libraries. * gdk_pixbuf.def: Update. * gdk-pixbuf-io.c: (Win32) Use G_WIN32_DLLMAIN_FOR_DLL_NAME, saves the actual DLL name of libgdk_pixbuf. (get_libdir): Use it instead of guessing. * io-xbm.c (gdk_pixbuf__xbm_image_begin_load): Use g_file_open_tmp() insread of mkstemp().
Diffstat (limited to 'gdk-pixbuf/io-xbm.c')
-rw-r--r--gdk-pixbuf/io-xbm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk-pixbuf/io-xbm.c b/gdk-pixbuf/io-xbm.c
index c989ada04..62413a1a9 100644
--- a/gdk-pixbuf/io-xbm.c
+++ b/gdk-pixbuf/io-xbm.c
@@ -365,10 +365,10 @@ gdk_pixbuf__xbm_image_begin_load (ModulePreparedNotifyFunc prepare_func,
context->update_func = update_func;
context->user_data = user_data;
context->all_okay = TRUE;
- context->tempname = g_strdup ("/tmp/gdkpixbuf-xbm-tmp.XXXXXX");
- fd = mkstemp (context->tempname);
+ fd = g_file_open_tmp ("gdkpixbuf-xbm-tmp.XXXXXX",
+ &context->tempname,
+ NULL);
if (fd < 0) {
- g_free (context->tempname);
g_free (context);
return NULL;
}