From owner-freebsd-current Thu Apr 20 21:36:30 2000 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id B819037B8DA; Thu, 20 Apr 2000 21:36:24 -0700 (PDT) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.9.3/8.9.3) id IAA35361; Fri, 21 Apr 2000 08:36:13 +0400 (MSD) (envelope-from ache) Date: Fri, 21 Apr 2000 08:36:12 +0400 From: "Andrey A. Chernov" To: tcsh-bugs@mx.gw.com, obrien@FreeBSD.org Cc: current@FreeBSD.org Subject: tcsh history and month bugfix: tc.prompt.c v3.38 Message-ID: <20000421083612.A35344@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Organization: Biomechanoid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --- 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