From owner-cvs-all Sat Dec 12 22:40:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA20089 for cvs-all-outgoing; Sat, 12 Dec 1998 22:40:23 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA20084; Sat, 12 Dec 1998 22:40:19 -0800 (PST) (envelope-from dillon@FreeBSD.org) From: Matt Dillon Received: (from dillon@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA15238; Sat, 12 Dec 1998 22:40:19 -0800 (PST) Date: Sat, 12 Dec 1998 22:40:19 -0800 (PST) Message-Id: <199812130640.WAA15238@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/usr.bin/hexdump display.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk dillon 1998/12/12 22:40:19 PST Modified files: usr.bin/hexdump display.c Log: PR: bin/9016 Fix bug with od/hd/hexdump. "*" lines are supposed to indicate one or duplicates of the previous line, but a small file with less then 16 characters of zeros in it will be falsy identified as a repeat of the (non-existant) previous line. i.e. the first line of output winds up being a "*". Added a bit of code to handle the degenerate 'there is no previous line' case for the first line. Revision Changes Path 1.3 +8 -3 src/usr.bin/hexdump/display.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message