From 47426ed3a62e9a1e0930b427da9651328a5f615f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 17 Dec 2005 13:34:10 +0000 Subject: Use gstdio wrappers. 2005-12-17 Tor Lillqvist * gui/e-itip-control.c: Use gstdio wrappers. svn path=/trunk/; revision=30810 --- calendar/gui/e-itip-control.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'calendar/gui/e-itip-control.c') diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 99c42a25cb..f840856bd7 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -51,12 +52,13 @@ #include #include #include +#include +#include #include "dialogs/delete-error.h" #include "calendar-config.h" #include "itip-utils.h" #include "e-itip-control.h" #include "common/authentication.h" -#include struct _EItipControlPrivate { GtkWidget *html; @@ -2090,7 +2092,7 @@ url_requested_cb (GtkHTML *html, const gchar *url, GtkHTMLStream *handle, gpoint { unsigned char buffer[4096]; int len, fd; - if ((fd = open (url, O_RDONLY)) == -1) { + if ((fd = g_open (url, O_RDONLY|O_BINARY, 0)) == -1) { g_warning ("%s", g_strerror (errno)); return; } -- cgit v1.2.3