From: Paul Eggert Date: Sat, 28 Jun 2025 22:21:18 +0000 (-0700) Subject: od: speed up -S X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=667be269edb23b855c15bf13bf01238dd2bf470b;p=thirdparty%2Fcoreutils.git od: speed up -S * src/od.c (read_char): Use getc, not fgetc. --- diff --git a/src/od.c b/src/od.c index 6d9c5d0697..b3af4c72f7 100644 --- 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 ();