aboutsummaryrefslogtreecommitdiffstats
path: root/smime/lib/e-pkcs12.c
diff options
context:
space:
mode:
Diffstat (limited to 'smime/lib/e-pkcs12.c')
-rw-r--r--smime/lib/e-pkcs12.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/smime/lib/e-pkcs12.c b/smime/lib/e-pkcs12.c
index 12be49abc5..edb4286f73 100644
--- a/smime/lib/e-pkcs12.c
+++ b/smime/lib/e-pkcs12.c
@@ -60,6 +60,8 @@
#include <config.h>
#endif
+#include <glib.h>
+#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <libgnome/gnome-i18n.h>
#include <libedataserverui/e-passwords.h>
@@ -179,7 +181,7 @@ input_to_decoder (SEC_PKCS12DecoderContext *dcx, const char *path, GError **erro
FILE *fp;
/* open path */
- fp = fopen (path, "r");
+ fp = g_fopen (path, "rb");
if (!fp) {
/* XXX gerror */
printf ("couldn't open `%s'\n", path);