From owner-cvs-src@FreeBSD.ORG Sun Sep 7 09:31:33 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F9E816A4BF; Sun, 7 Sep 2003 09:31:33 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E21943FDF; Sun, 7 Sep 2003 09:31:32 -0700 (PDT) (envelope-from charnier@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h87GVW0U065913; Sun, 7 Sep 2003 09:31:32 -0700 (PDT) (envelope-from charnier@repoman.freebsd.org) Received: (from charnier@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h87GVW4h065912; Sun, 7 Sep 2003 09:31:32 -0700 (PDT) Message-Id: <200309071631.h87GVW4h065912@repoman.freebsd.org> From: Philippe Charnier Date: Sun, 7 Sep 2003 09:31:32 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/w w.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 16:31:33 -0000 charnier 2003/09/07 09:31:32 PDT FreeBSD src repository Modified files: usr.bin/w w.c Log: Do not print the result of strftime() in case of failure, the content is indeterminate in such a case. The correct value for 2nd argument is sizeof(buf). Do not NUL-terminate the result string, strftime() will do it for us. Revision Changes Path 1.57 +3 -5 src/usr.bin/w/w.c