No subject



Sat Mar 12 04:33:35 2005
Return-Path: xorp-cvs-admin@icir.org
Delivery-Date: Fri, 11 Mar 2005 20:34:02 -0800
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
	by tigger.icir.org (8.12.11/8.12.8) with ESMTP id j2C4Y2Wk018511
	for <atanu@tigger.icir.org>; Fri, 11 Mar 2005 20:34:02 -0800 (PST)
	(envelope-from xorp-cvs-admin@icir.org)
Received: from fruitcake.ICSI.Berkeley.EDU (fruitcake.ICSI.Berkeley.EDU [192.150.186.11])
	by wyvern.icir.org (8.12.11/8.12.8) with ESMTP id j2C4Y1jj002127
	for <atanu@icir.org>; Fri, 11 Mar 2005 20:34:01 -0800 (PST)
	(envelope-from xorp-cvs-admin@icir.org)
Received: from fruitcake.ICSI.Berkeley.EDU (localhost [127.0.0.1])
	by fruitcake.ICSI.Berkeley.EDU (8.12.10/8.12.9) with ESMTP id j2C4Y1Mp011693;
	Fri, 11 Mar 2005 20:34:01 -0800 (PST)
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
	by fruitcake.ICSI.Berkeley.EDU (8.12.10/8.12.9) with ESMTP id j2C4XZMp011668
	for <xorp-cvs@icsi.berkeley.edu>; Fri, 11 Mar 2005 20:33:35 -0800 (PST)
Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68])
	by wyvern.icir.org (8.12.11/8.12.8) with ESMTP id j2C4XZs3002125
	for <xorp-cvs@icir.org>; Fri, 11 Mar 2005 20:33:35 -0800 (PST)
	(envelope-from pavlin@icir.org)
Received: from xorpc.icir.org (localhost [127.0.0.1])
	by xorpc.icir.org (8.12.11/8.12.8) with ESMTP id j2C4XZcK084080
	for <xorp-cvs@icir.org>; Fri, 11 Mar 2005 20:33:35 -0800 (PST)
	(envelope-from pavlin@xorpc.icir.org)
Received: (from pavlin@localhost)
	by xorpc.icir.org (8.12.11/8.12.3/Submit) id j2C4XZ0v084079
	for xorp-cvs@icir.org; Sat, 12 Mar 2005 04:33:35 GMT
	(envelope-from pavlin)
Date: Sat, 12 Mar 2005 04:33:35 GMT
From: Pavlin Radoslavov <pavlin@icir.org>
Message-Id: <200503120433.j2C4XZ0v084079@xorpc.icir.org>
To: xorp-cvs@icir.org
X-XORP-CVS-Branch: HEAD
Subject: [Xorp-cvs] XORP cvs commit: xorp/libxorp
Sender: xorp-cvs-admin@icir.org
Errors-To: xorp-cvs-admin@icir.org
X-BeenThere: xorp-cvs@icir.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:xorp-cvs-request@icir.org?subject=help>
List-Post: <mailto:xorp-cvs@icir.org>
List-Subscribe: <http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs>,
	<mailto:xorp-cvs-request@icir.org?subject=subscribe>
List-Id: Mailing list for XORP CVS commit messages <xorp-cvs.icir.org>
List-Unsubscribe: <http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs>,
	<mailto:xorp-cvs-request@icir.org?subject=unsubscribe>

CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin@xorpc.icir.org	2005-03-12 04:33:35 UTC

XORP CVS repository


Modified files:
	libxorp       c_format.cc 

Log message:
	Simplify and fix the implementation of do_c_format() in case the
	string to print is larger than 4KB. Previously, the code used
	a gcc-ism by defining a C-array with variable size, and eventually
	called vsnprintf() more than once with the same va_list arguments.
	Calling vsnprintf() more than once with the same va_list argument
	may not be safe (at least on OpenBSD+amd64).
	
	The newer implementation fixes both problems and removes
	c_format_va() because it is not needed anymore.

Revision  Changes    Path
1.5       +16 -22    xorp/libxorp/c_format.cc
_______________________________________________
Xorp-cvs mailing list
Xorp-cvs@icir.org
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs