diff plugins/spellchk.c @ 10589:0f7452b1f777

[gaim-migrate @ 11994] Use GLib 2.6's gstdio functions. This should fix gaim not liking non-ascii filenames in win32. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 11 Feb 2005 05:10:40 +0000
parents 8f2b74c5aa24
children c932d96a7c69
line wrap: on
line diff
--- a/plugins/spellchk.c	Fri Feb 11 03:51:26 2005 +0000
+++ b/plugins/spellchk.c	Fri Feb 11 05:10:40 2005 +0000
@@ -343,11 +343,11 @@
 	if(fclose(f)) {
 		gaim_debug(GAIM_DEBUG_ERROR, "spellchk",
 				   "Error writing to %s: %m\n", tempfilename);
-		unlink(tempfilename);
+		g_unlink(tempfilename);
 		g_free(name);
 		return;
 	}
-	rename(tempfilename, name);
+	g_rename(tempfilename, name);
 	g_free(name);
 }