[gmime] minor fix to uuencode.c



commit 9318227416cb99112ccf16a07d258f0ffd3b7319
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Sep 19 22:16:51 2009 -0400

    minor fix to uuencode.c

 src/uuencode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/uuencode.c b/src/uuencode.c
index 672fea3..d37c6cf 100644
--- a/src/uuencode.c
+++ b/src/uuencode.c
@@ -139,7 +139,7 @@ uuencode (const char *progname, int argc, char **argv)
 	name = argv[optind];
 	
 	/* open our input file... */
-	if ((fd = filename ? open (filename, O_RDONLY) : dup (0)) == -1) {
+	if ((fd = filename ? open (filename, O_RDONLY, 0) : dup (0)) == -1) {
 		fprintf (stderr, "%s: %s: %s\n", progname,
 			 filename ? filename : "stdin",
 			 g_strerror (errno));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]