Date: Mon, 15 Jul 2002 09:14:03 -0600 From: "Todd C. Miller" <Todd.Miller@courtesan.com> To: "M. Warner Losh" <imp@bsdimp.com> Cc: keramida@FreeBSD.ORG, bde@zeta.org.au, des@ofug.org, freebsd-audit@FreeBSD.ORG Subject: Re: bin/ln & WARNS=5 Message-ID: <200207151514.g6FFE3BI007055@xerxes.courtesan.com> In-Reply-To: Your message of "Mon, 15 Jul 2002 09:04:20 MDT." <20020715.090420.83279095.imp@bsdimp.com> References: <xzpele59w21.fsf@flood.ping.uio.no> <20020715202126.S40071-100000@gamplex.bde.org> <20020715111436.GD50130@hades.hell.gr> <20020715.090420.83279095.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20020715.090420.83279095.imp@bsdimp.com> so spake "M. Warner Losh" (imp): > snprintf never returns a negative number. It always returns the > number of characters that it would have used to make the string. Actually, on Solaris snprintf can return -1 due to an incorrect locale-specific format string, although this does not appear to be documented. And of course, Single Unix used to specify that -1 was returned when out of space. If you are trying for "extreme portability" you might care. - todd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207151514.g6FFE3BI007055>