diff plugins/spellchk.c @ 3728:73e06ba29015

[gaim-migrate @ 3865] Win32 fixes committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 17 Oct 2002 20:03:42 +0000
parents 9682c0e022c6
children 871bdebc3037
line wrap: on
line diff
--- a/plugins/spellchk.c	Thu Oct 17 17:40:15 2002 +0000
+++ b/plugins/spellchk.c	Thu Oct 17 20:03:42 2002 +0000
@@ -96,7 +96,7 @@
 	words = NULL;
 
 	buf = malloc(1000);
-	snprintf(buf, 1000, "%s/.gaim/dict", getenv("HOME"));
+	snprintf(buf, 1000, "%s/.gaim/dict", gaim_home_dir());
 	fh = open(buf, O_RDONLY, 0600);
 	if (fh == -1) {
 		fh = open(buf, O_TRUNC | O_WRONLY | O_CREAT, 0600);
@@ -290,7 +290,7 @@
 	char buf[512];
 	char *a, *b;
 
-	snprintf(buf, sizeof buf, "%s/.gaim/dict", getenv("HOME"));
+	snprintf(buf, sizeof buf, "%s/.gaim/dict", gaim_home_dir());
 	fh = open(buf, O_TRUNC | O_WRONLY | O_CREAT, 0600);
 	if (fh != 1) {
 		while (gtk_clist_get_text(GTK_CLIST(list), i, 0, &a)) {