From: Ondrej Oprala Date: Mon, 23 Sep 2013 13:39:12 +0000 (+0200) Subject: hexdump: rewrite get() X-Git-Tag: v2.25-rc1~768 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f77ad413660e9daafe7b3602ba4f10a868f17077;p=thirdparty%2Futil-linux.git hexdump: rewrite get() Signed-off-by: Ondrej Oprala --- diff --git a/text-utils/display.c b/text-utils/display.c index 1b82d3fe47..524c8b897b 100644 --- a/text-utils/display.c +++ b/text-utils/display.c @@ -253,7 +253,8 @@ get(void) savp = tmpp; address += blocksize; } - for (need = blocksize, nread = 0;;) { + need = blocksize, nread = 0; + while (TRUE) { /* * if read the right number of bytes, or at EOF for one file, * and no other files are available, zero-pad the rest of the