summaryrefslogtreecommitdiff
path: root/man/man3/cmark.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/man3/cmark.3')
-rw-r--r--man/man3/cmark.32
1 files changed, 1 insertions, 1 deletions
diff --git a/man/man3/cmark.3 b/man/man3/cmark.3
index 523a3d4..283b9cc 100644
--- a/man/man3/cmark.3
+++ b/man/man3/cmark.3
@@ -543,7 +543,7 @@ Streaming interface:
.nf
\f[C]
cmark_parser *parser = cmark_parser_new(CMARK_OPT_DEFAULT);
-FILE *fp = fopen("myfile.md", "r");
+FILE *fp = fopen("myfile.md", "rb");
while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) {
cmark_parser_feed(parser, buffer, bytes);
if (bytes < sizeof(buffer)) {