[monkey-bubble: 206/753] Use stat(), not fstat(); [FIXME: for some strange reason, fstat() is an



commit 4b3941734ce5c1222aec857d5d6fa5cc38f0e5da
Author: Martin Baulig <baulig suse de>
Date:   Sat Apr 28 23:15:56 2001 +0000

    Use stat(), not fstat(); [FIXME: for some strange reason, fstat() is an
    
    2001-04-29  Martin Baulig  <baulig suse de>
    
    	* gnome-textfu.c (gnome_textfu_parse): Use stat(), not fstat();
    	[FIXME: for some strange reason, fstat() is an undefined symbol
    	on my system.]

 libgnomeui/ChangeLog      |    6 ++++++
 libgnomeui/gnome-textfu.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libgnomeui/ChangeLog b/libgnomeui/ChangeLog
index 4ad75ac..dd3f745 100644
--- a/libgnomeui/ChangeLog
+++ b/libgnomeui/ChangeLog
@@ -1,5 +1,11 @@
 2001-04-29  Martin Baulig  <baulig suse de>
 
+	* gnome-textfu.c (gnome_textfu_parse): Use stat(), not fstat();
+	[FIXME: for some strange reason, fstat() is an undefined symbol
+	on my system.]
+
+2001-04-29  Martin Baulig  <baulig suse de>
+
 	* gnome-stock-icons.c: New file; we'll most likely move all
 	the icons from the pixmaps/ directory into GTK+ very soon,
 	this file is the first step in this direction.
diff --git a/libgnomeui/gnome-textfu.c b/libgnomeui/gnome-textfu.c
index 4eba76d..141e629 100644
--- a/libgnomeui/gnome-textfu.c
+++ b/libgnomeui/gnome-textfu.c
@@ -1199,7 +1199,7 @@ gnome_textfu_parse(GnomeTextFu *textfu)
   if(fd < 0)
     return NULL;
 
-  fstat(fd, &sbuf);
+  stat(textfu->cur_filename, &sbuf);
 
   mem = g_malloc(sbuf.st_size + 1);
   size_left = sbuf.st_size;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]