aboutsummaryrefslogtreecommitdiffstats
path: root/smime/lib/e-pkcs12.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-12-18 16:36:11 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-12-18 16:36:11 +0800
commita831a31bef95510a56cf438f26bfb09de9666a28 (patch)
tree4b407b67a6bf5244a80fc39ddefbff094eb2ae8c /smime/lib/e-pkcs12.c
parentbc7c7799f09b81c85c5f0ff6e0bcdcbaf539f02b (diff)
downloadgsoc2013-evolution-a831a31bef95510a56cf438f26bfb09de9666a28.tar.gz
gsoc2013-evolution-a831a31bef95510a56cf438f26bfb09de9666a28.tar.zst
gsoc2013-evolution-a831a31bef95510a56cf438f26bfb09de9666a28.zip
lib/e-cert-db.c Use gstdio wrappers. Open file in binary mode.
2005-12-18 Tor Lillqvist <tml@novell.com> * lib/e-cert-db.c * lib/e-pkcs12.c: Use gstdio wrappers. Open file in binary mode. svn path=/trunk/; revision=30858
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);