From owner-freebsd-current Sat Jun 10 12:20:50 2000 Delivered-To: freebsd-current@freebsd.org Received: from hrothgar.gw.com (hrothgar.gw.com [204.80.150.3]) by hub.freebsd.org (Postfix) with ESMTP id C50AE37BDB8; Sat, 10 Jun 2000 12:20:41 -0700 (PDT) (envelope-from kim@tac.nyc.ny.us) Received: from hrothgar.gw.com (kim@localhost [127.0.0.1]) by hrothgar.gw.com (8.9.3/8.8.6.Beta0/2.1.kim) with ESMTP id PAA17675; Sat, 10 Jun 2000 15:20:25 -0400 (EDT) Message-Id: <200006101920.PAA17675@hrothgar.gw.com> To: "Andrey A. Chernov" Cc: tcsh-bugs@mx.gw.com, obrien@FreeBSD.org, current@FreeBSD.org Subject: Re: tcsh history and month bugfix: tc.prompt.c v3.38 In-Reply-To: <20000421083612.A35344@nagual.pp.ru> from "Andrey A. Chernov" on Fri, 21 Apr 2000 08:36:12 +0400 References: <20000421083612.A35344@nagual.pp.ru> X-Face: dJ`"\|-Z6bKup3nm*Th75RV`!T)~xXMZKQt6|%BR~9'A7WzN"rsq4Cv+T~Hg9YRb^oEmVxz I0s1&A|(:ISoQJus6s<%pssRki3x*Kf;3BL;Gyq3'>06R>R`Om_ILkJAizKL{AC::|UE/N)u}*Ix}s nn{eh=0Um[!yF@gn-JN.6AB+xy5$Biy5I?)T~i#-C^m>vy(!(S*'m}M[>5uvbWcm X-Attribution: Kim MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17671.960664825.1@hrothgar.gw.com> Date: Sat, 10 Jun 2000 15:20:25 -0400 From: Kimmo Suominen Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This has been applied. + Kim | From: "Andrey A. Chernov" | Date: Fri, 21 Apr 2000 08:36:12 +0400 | | --- tc.prompt.c.bak Thu Apr 20 11:47:23 2000 | +++ tc.prompt.c Fri Apr 21 08:31:17 2000 | @@ -222,7 +222,7 @@ | fmthist('R', info, (char *) (cz = cbuff), sizeof(cbuff)); | else | cz = (unsigned char *) str; | - if (str != NULL) | + if (cz != NULL) | for (; *cz; *p++ = attributes | *cz++) | if (p >= ep) break; | break; | @@ -477,7 +477,7 @@ | case 'w': | if (p >= ep - 5) break; | for (cz = (unsigned char *) month_list[t->tm_mon]; *cz; | - *p++ = attributes | *cz++); | + *p++ = attributes | *cz++) | if (p >= ep) break; | break; | case 'W': | -- | Andrey A. Chernov | | http://nagual.pp.ru/~ache/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message