# HG changeset patch # User Richard Laager # Date 1178409329 0 # Node ID ce2422ae793ccb764e44e97bfe21d96040bf195f # Parent ec79e3ad09a9ee8599cd996c52dbba1c88299520 From my reading of the documentation, g_mkstemp() is a strict superset of mkstemp()'s functionality. datallah commented in the commit message for 27e1df003532e1209f1f56770923ca4c7674d7ca that he thought this could be done the same on *nix and Win32, but didn't want to break anything before the release. I'm confident this should be okay, and it should be safe to break things now. ;) diff -r ec79e3ad09a9 -r ce2422ae793c libpurple/util.c --- a/libpurple/util.c Fri May 04 04:01:23 2007 +0000 +++ b/libpurple/util.c Sat May 05 23:55:29 2007 +0000 @@ -2529,11 +2529,7 @@ if((tmpdir = (gchar*)g_get_tmp_dir()) != NULL) { if((*fpath = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s", tmpdir, purple_mkstemp_templ)) != NULL) { -#ifdef _WIN32 fd = g_mkstemp(*fpath); -#else - fd = mkstemp(*fpath)); -#endif if(fd == -1) { purple_debug(PURPLE_DEBUG_ERROR, "purple_mkstemp", "Couldn't make \"%s\", error: %d\n",