Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Feb 2013 00:18:40 GMT
From:      William Ahern <william@25thandclement.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/175975: Typo in hexdump/conv.c
Message-ID:  <201302090018.r190Iewu093090@red.freebsd.org>
Resent-Message-ID: <201302090020.r190K0YL011953@freefall.freebsd.org>

index | next in thread | raw e-mail


>Number:         175975
>Category:       misc
>Synopsis:       Typo in hexdump/conv.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 09 00:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     William Ahern
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD fbsd 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
usr.bin/hexdump/conv.c contains a typo at line 154. Instead of "dc1", there's "dcl". That is, it contains the letter "l" instead of the number "1". The man page correctly documents "dc1". This is fixed for OS X. I discovered this when testing my own implementation of hexdump at http://25thandclement.com/~william/projects/hexdump.c.html


>How-To-Repeat:
hexdump -e '16 "%3_u " "\n"' /dev/urandom | grep -e dcl -e dc1 | head

>Fix:
Fix the typo.


>Release-Note:
>Audit-Trail:
>Unformatted:


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302090018.r190Iewu093090>