aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tst-cookie.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tst-cookie.c')
-rw-r--r--stdio-common/tst-cookie.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/stdio-common/tst-cookie.c b/stdio-common/tst-cookie.c
index 030e684..90ebc8e 100644
--- a/stdio-common/tst-cookie.c
+++ b/stdio-common/tst-cookie.c
@@ -5,6 +5,8 @@
#include <stdio.h>
+#include <support/xstdio.h>
+
#define THE_COOKIE ((void *) 0xdeadbeeful)
@@ -77,7 +79,8 @@ do_test (void)
f = fopencookie (THE_COOKIE, "r+", fcts);
- fread (buf, 1, 1, f);
+ xfread (buf, 1, 1, f);
+
fwrite (buf, 1, 1, f);
fseek (f, 0, SEEK_CUR);
fclose (f);