From f77ad413660e9daafe7b3602ba4f10a868f17077 Mon Sep 17 00:00:00 2001 From: Ondrej Oprala Date: Mon, 23 Sep 2013 15:39:12 +0200 Subject: [PATCH] hexdump: rewrite get() Signed-off-by: Ondrej Oprala --- text-utils/display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.2