diff src/gtkmain.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 59a2807e10bb
children 222b53ee74f3
line wrap: on
line diff
--- a/src/gtkmain.c	Fri Feb 11 03:51:26 2005 +0000
+++ b/src/gtkmain.c	Fri Feb 11 05:10:40 2005 +0000
@@ -404,7 +404,7 @@
 	basebuf = g_find_program_in_path(argv0);
 
 	/* But we still need to deal with symbolic links */
-	lstat(basebuf, &st);
+	g_lstat(basebuf, &st);
 	while ((st.st_mode & S_IFLNK) == S_IFLNK) {
 		linkbuf = g_malloc(1024);
 		readlink(basebuf, linkbuf, 1024);
@@ -423,7 +423,7 @@
 		g_free(linkbuf);
 		g_free(basebuf);
 		basebuf = fullbuf;
-		lstat(basebuf, &st);
+		g_lstat(basebuf, &st);
 	}
 
 	fullname = basebuf;