[gmime] Use GMimeStreamPipe in uuencode example to avoid illegal seeks on pipes
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Use GMimeStreamPipe in uuencode example to avoid illegal seeks on pipes
- Date: Mon, 14 May 2018 18:04:30 +0000 (UTC)
commit 1f99f914f8b78718f52edd738f16c15010760f32
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date: Fri Jan 19 07:17:28 2018 -0500
Use GMimeStreamPipe in uuencode example to avoid illegal seeks on pipes
Fixes issue #43
examples/uuencode.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/examples/uuencode.c b/examples/uuencode.c
index a2510d0..ce2d0f4 100644
--- a/examples/uuencode.c
+++ b/examples/uuencode.c
@@ -137,7 +137,7 @@ uuencode (const char *progname, int argc, char **argv)
printf ("begin%s %.3o %s\n", base64 ? "-base64" : "", st.st_mode & 0777, name);
fflush (stdout);
- istream = g_mime_stream_fs_new (fd);
+ istream = g_mime_stream_pipe_new (fd);
/* open our output stream */
ostream = g_mime_stream_pipe_new (1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]