diff options
Diffstat (limited to 'libtests/hex.cc')
-rw-r--r-- | libtests/hex.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtests/hex.cc b/libtests/hex.cc index 5278f95f..0a08fcb8 100644 --- a/libtests/hex.cc +++ b/libtests/hex.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; |