aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/bug1.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/bug1.c')
-rw-r--r--stdio-common/bug1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/bug1.c b/stdio-common/bug1.c
index 455b14d..51639d3 100644
--- a/stdio-common/bug1.c
+++ b/stdio-common/bug1.c
@@ -12,12 +12,12 @@ 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);
lose |= size != 5;
lose |= strncmp (bp, "hello", size);
fprintf (stream, ", world");
fclose (stream);
- printf ("buf = %s, size = %d\n", bp, size);
+ printf ("buf = %s, size = %Zu\n", bp, size);
lose |= size != 12;
lose |= strncmp (bp, "hello, world", 12);