From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31272 invoked by alias); 16 Mar 2005 00:27:10 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 31189 invoked from network); 16 Mar 2005 00:27:05 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 16 Mar 2005 00:27:05 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j2G0R5fs028410 for ; Tue, 15 Mar 2005 19:27:05 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j2G0R5Y22633; Tue, 15 Mar 2005 19:27:05 -0500 Received: from localhost.localdomain (vpn50-40.rdu.redhat.com [172.16.50.40]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id j2G0R4fD013533; Tue, 15 Mar 2005 19:27:04 -0500 Received: from ironwood.lan (ironwood.lan [192.168.64.8]) by localhost.localdomain (8.12.11/8.12.10) with ESMTP id j2G0Qvm8017161; Tue, 15 Mar 2005 17:26:58 -0700 Date: Wed, 16 Mar 2005 00:27:00 -0000 From: Kevin Buettner To: gdb@sources.redhat.com Cc: Mark Kettenis Subject: Re: [RFC] xnsprintf() Message-ID: <20050315172657.4d6b7804@ironwood.lan> In-Reply-To: <20050313154155.GB18342@nevyn.them.org> References: <200503131448.j2DEmqZ0029001@elgar.sibelius.xs4all.nl> <20050313154155.GB18342@nevyn.them.org> Organization: Red Hat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00157.txt.bz2 On Sun, 13 Mar 2005 10:41:55 -0500 Daniel Jacobowitz wrote: > On Sun, Mar 13, 2005 at 03:48:52PM +0100, Mark Kettenis wrote: > > > > So right now I'm wondering whether we should have a function, say > > xsnprintf(), that checks whether the string fits in the buffer, and > > throws an internal-error if it doesn't. > > > > Opinions? > > Sure. Seems like a good fit with xasprintf and xstrprintf. I agree. Kevin