Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2002 06:50:02 -0800 (PST)
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        freebsd-standards@FreeBSD.org
Subject:   Re: standards/36191: P1003.1-2001 csplit utility 
Message-ID:  <200203221450.g2MEo2586444@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR standards/36191; it has been noted by GNATS.

From: "Brian F. Feldman" <green@FreeBSD.org>
To: "Tim J. Robbins" <tim@robbins.dropbear.id.au>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: standards/36191: P1003.1-2001 csplit utility 
Date: Fri, 22 Mar 2002 09:49:36 -0500

 "Tim J. Robbins" <tim@robbins.dropbear.id.au> wrote:
 > X	sprintf(fmt, "%%s%%0%ldld", sufflen);
 > X	sprintf(currfile, fmt, prefix, nfiles);
 
 This is a bit of a strange construct.  You should probably be using 
 something like:
 	snprintf(currfile, sizeof(currfile), "%s%*ld", prefix, sufflen, nfiles);
 
 -- 
 Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
   <> green@FreeBSD.org  <> bfeldman@tislabs.com      \  The Power to Serve! \
  Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\
 
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203221450.g2MEo2586444>