From owner-cvs-all Sat Mar 30 5:46:37 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (unknown [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A40A537B416; Sat, 30 Mar 2002 05:46:33 -0800 (PST) Received: (from dwmalone@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2UDikr58977; Sat, 30 Mar 2002 05:44:46 -0800 (PST) (envelope-from dwmalone) Message-Id: <200203301344.g2UDikr58977@freefall.freebsd.org> From: David Malone Date: Sat, 30 Mar 2002 05:44:46 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/chpass edit.c field.c pw_yp.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dwmalone 2002/03/30 05:44:46 PST Modified files: usr.bin/chpass edit.c field.c pw_yp.c Log: Minor post warns stuff. 1) Fix up vendor IDs for files I'm touching and put FBSDID in the right place. 2) Cast return value of snprintf to size_t rather than casting sizeof() to an int, 'cos we know snprintf returns a non-genative number. 3) Avoid 'char *blank = "";' by just strduping. This could be bad sometimes, but all these variables usually point at malloced memory so this makes them always point at malloced memory. Revision Changes Path 1.21 +5 -3 src/usr.bin/chpass/edit.c 1.6 +6 -12 src/usr.bin/chpass/field.c 1.21 +3 -4 src/usr.bin/chpass/pw_yp.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message