Date: Fri, 21 Apr 2000 08:36:12 +0400 From: "Andrey A. Chernov" <ache@nagual.pp.ru> 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>
next in thread | raw e-mail | index | archive | help
--- 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 <ache@nagual.pp.ru> http://nagual.pp.ru/~ache/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000421083612.A35344>