Skip site navigation (1)Skip section navigation (2)
Date:      13 Dec 2000 11:32:33 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        assar@FreeBSD.ORG
Cc:        arch@FreeBSD.ORG
Subject:   Re: Safe string formatting in the kernel
Message-ID:  <xzp66ko627y.fsf@flood.ping.uio.no>
In-Reply-To: assar@FreeBSD.ORG's message of "13 Dec 2000 08:59:47 %2B0100"
References:  <200012120259.eBC2xfb99004@earth.backplane.com> <xzpsnnuq1hy.fsf@flood.ping.uio.no> <20001211185610.A1741@citusc.usc.edu> <200012121820.LAA31234@harmony.village.org> <5l66kozzhm.fsf@assaris.sics.se> <20001212234514.A73840@dragon.nuxi.com> <5lvgsovjik.fsf@assaris.sics.se>

next in thread | previous in thread | raw e-mail | index | archive | help
assar@FreeBSD.ORG writes:
> Sizes I get on i386:
> 
> text    filename
> 111     strlcat.o
> 69      strlcpy.o
> 35      strcpy.o
> 43      strcat.o

strlcat() / strlcpy() shouldn't be more than a few bytes larger than
strcat() / strcpy(), and the latter can be replaced by macros that
call the former with a size of UINT_MAX.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org


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




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