Date: Fri, 24 May 1996 14:15:22 +0200 From: Zahemszky Gabor <zgabor@code.hu> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/1241: ``jot(1)'' dumps core Message-ID: <199605241215.OAA00275@zg.CoDe.hu> Resent-Message-ID: <199605241230.FAA25928@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 1241 >Category: bin >Synopsis: The jot(1) command with -s (FROM 2.1.0 CD) generates core dump >Confidential: yes >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 24 05:30:02 PDT 1996 >Last-Modified: >Originator: Zahemszky Gabor <zgabor@CoDe.hu> >Organization: >Release: FreeBSD 2.1.0-RELEASE i386 >Environment: FreeBSD 2.1.0-RELEASE from Walnut Creek CD. >Description: The jot(1) command, found on a 2.1.0-RELEASE CD from Walnut Creek, generates a core dump, if called with the ``-s'' option. >How-To-Repeat: Any jot command with -s option. Eg: jot -s ' ' /etc/passwd /etc/passwd >Fix: Here is the fixing patch: *** jot.c.orig Fri May 24 14:05:58 1996 --- jot.c Fri May 24 14:08:38 1996 *************** *** 140,150 **** break; case 's': if ((*av)[2]) ! strcpy(sepstring, *av + 2); else if (!--ac) error("Need string after -s", ""); else ! strcpy(sepstring, *++av); break; case 'p': if ((*av)[2]) --- 140,150 ---- break; case 's': if ((*av)[2]) ! sepstring = *av + 2; else if (!--ac) error("Need string after -s", ""); else ! sepstring = *++av; break; case 'p': if ((*av)[2]) >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605241215.OAA00275>