]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
od: speed up -S
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Jun 2025 22:21:18 +0000 (15:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Jun 2025 04:00:41 +0000 (21:00 -0700)
* src/od.c (read_char): Use getc, not fgetc.

src/od.c

index 6d9c5d06977b831356293f2f340568096d0d1f5a..b3af4c72f73fe90dc5425d9e9a4ed6827c401cd5 100644 (file)
--- a/src/od.c
+++ b/src/od.c
@@ -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 ();