od: speed up -S

* src/od.c (read_char): Use getc, not fgetc.
This commit is contained in:
Paul Eggert committed 2025-06-28 21:00:41 -07:00
1 parent 984dcc37f2
commit 667be269ed
1 file changed
+1 -1
+1 -1
View File
@@ -1314,7 +1314,7 @@ read_char (int *c)
*c = EOF;
while (in_stream && (*c = fgetc (in_stream)) < 0)
while (in_stream && (*c = getc (in_stream)) < 0)
{
ok &= check_and_close (errno);
ok &= open_next_file ();