diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 3 | ||||
-rw-r--r-- | calendar/gui/e-itip-control.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 73088a4ce2..f4b05cb7d6 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -6,7 +6,8 @@ * gui/e-cal-list-view.c * gui/e-calendar-table.c - * gui/e-calendar-view.c: Use gstdio wrappers. + * gui/e-calendar-view.c + * gui/e-itip-control.c: Use gstdio wrappers. * gui/e-cal-model-tasks.c: Use e_util_utf8_strcasecmp() to do proper comparison of translated (UTF-8) strings. 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 <fcntl.h> #include <unistd.h> #include <glib.h> +#include <glib/gstdio.h> #include <gtk/gtkmisc.h> #include <libgnome/gnome-i18n.h> #include <libgnome/gnome-util.h> @@ -51,12 +52,13 @@ #include <libedataserver/e-time-utils.h> #include <e-util/e-dialog-widgets.h> #include <e-util/e-html-utils.h> +#include <e-util/e-icon-factory.h> +#include <e-util/e-util-private.h> #include "dialogs/delete-error.h" #include "calendar-config.h" #include "itip-utils.h" #include "e-itip-control.h" #include "common/authentication.h" -#include <e-util/e-icon-factory.h> 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; } |