aboutsummaryrefslogtreecommitdiff
path: root/manual/examples/memstrm.c
diff options
context:
space:
mode:
Diffstat (limited to 'manual/examples/memstrm.c')
-rw-r--r--manual/examples/memstrm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/examples/memstrm.c b/manual/examples/memstrm.c
index 0d443b1..5701ba1 100644
--- a/manual/examples/memstrm.c
+++ b/manual/examples/memstrm.c
@@ -27,10 +27,10 @@ main (void)
stream = open_memstream (&bp, &size);
fprintf (stream, "hello");
fflush (stream);
- printf ("buf = `%s', size = %d\n", bp, size);
+ printf ("buf = `%s', size = %zu\n", bp, size);
fprintf (stream, ", world");
fclose (stream);
- printf ("buf = `%s', size = %d\n", bp, size);
+ printf ("buf = `%s', size = %zu\n", bp, size);
return 0;
}