From 9b5ae3c3fe97f90d321094d01fbc6e831ecfc313 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 17 Dec 2005 13:36:29 +0000 Subject: Use gstdio wrappers. 2005-12-17 Tor Lillqvist * gui/e-memo-table.c: Use gstdio wrappers. svn path=/trunk/; revision=30812 --- calendar/gui/e-memo-table.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c index a720ffbe09..bd14f3cbee 100644 --- a/calendar/gui/e-memo-table.c +++ b/calendar/gui/e-memo-table.c @@ -34,6 +34,8 @@ #include #include +#include +#include #include #include #include @@ -749,7 +751,7 @@ e_memo_table_on_save_as (EPopup *ep, EPopupItem *pitem, void *data) return; } - file = fopen (filename, "w"); + file = g_fopen (filename, "w"); if (file == NULL) { g_warning ("Couldn't save item"); return; @@ -969,7 +971,7 @@ e_memo_table_load_state (EMemoTable *memo_table, g_return_if_fail (E_IS_MEMO_TABLE (memo_table)); - if (stat (filename, &st) == 0 && st.st_size > 0 + if (g_stat (filename, &st) == 0 && st.st_size > 0 && S_ISREG (st.st_mode)) { e_table_load_state (e_table_scrolled_get_table (E_TABLE_SCROLLED (memo_table->etable)), filename); } -- cgit v1.2.3