From owner-cvs-src@FreeBSD.ORG Wed Aug 27 11:20:59 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 6F69416A4BF; Wed, 27 Aug 2003 11:20:59 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E11543FBD; Wed, 27 Aug 2003 11:20:58 -0700 (PDT) (envelope-from kbyanc@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 h7RIKw0U009067; Wed, 27 Aug 2003 11:20:58 -0700 (PDT) (envelope-from kbyanc@repoman.freebsd.org) Received: (from kbyanc@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7RIKwYL009066; Wed, 27 Aug 2003 11:20:58 -0700 (PDT) Message-Id: <200308271820.h7RIKwYL009066@repoman.freebsd.org> From: Kelly Yancey Date: Wed, 27 Aug 2003 11:20:58 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/lib/libc/stdio vsnprintf.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: Wed, 27 Aug 2003 18:20:59 -0000 kbyanc 2003/08/27 11:20:58 PDT FreeBSD src repository Modified files: (Branch: RELENG_4) lib/libc/stdio vsnprintf.c Log: MFC revision 1.22: When size is 1 should just null terminate the string. This fix has the side effect of making vsnprintf() properly return the length of the string that would have been created if the buffer were infinite length when the passed size is 1. Previously, it would erroniously return 0 which causes auto-extending sbufs to misbehave in userland apps linked against libsbuf. Approved by: re (jhb) Revision Changes Path 1.12.2.2 +5 -3 src/lib/libc/stdio/vsnprintf.c