aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/ascii85.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/ascii85.cc')
-rw-r--r--libtests/ascii85.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtests/ascii85.cc b/libtests/ascii85.cc
index 8be7175d..497df79a 100644
--- a/libtests/ascii85.cc
+++ b/libtests/ascii85.cc
@@ -15,7 +15,7 @@ int main()
bool done = false;
while (! done)
{
- int len = read(0, buf, sizeof(buf));
+ int len = fread(buf, 1, sizeof(buf), stdin);
if (len <= 0)
{
done = true;