From owner-freebsd-standards Fri Mar 22 6:50: 6 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E324037B400 for ; Fri, 22 Mar 2002 06:50:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2MEo2586444; Fri, 22 Mar 2002 06:50:02 -0800 (PST) (envelope-from gnats) Date: Fri, 22 Mar 2002 06:50:02 -0800 (PST) Message-Id: <200203221450.g2MEo2586444@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: "Brian F. Feldman" Subject: Re: standards/36191: P1003.1-2001 csplit utility Reply-To: "Brian F. Feldman" Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The following reply was made to PR standards/36191; it has been noted by GNATS. From: "Brian F. Feldman" To: "Tim J. Robbins" 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" 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