LWN.net Logo

Letters to the editor

strlcpy

From:  Theo de Raadt <deraadt@cvs.openbsd.org>
To:  lwn@lwn.net
Subject:  strlcpy
Date:  Thu, 05 Jun 2003 14:11:00 -0600

Two thing you guys might like to be aware of:
 
1) We certainly hope that the Linux version is 100% compatible. Even
a teeny little incompatibility here would be utterly dumb. Ours is
under an ISC-like license -- you cannot get more free than that, and
we would be utterly pissed off if Linus went and made incompatible
changes (and I think the community should also be; note that Linux
snprintf is not 100% complaint either). Solaris had a bug in the
first strlcpy/strlcat they shipped, and I believe they have now
adjusted to just using our code -- to avoid incompatibilities.
 
2) Our bootblocks, kernels, and all of userland (except for a few GNU
things like gcc, cvs, and binutils) are not using strcpy, strcat,
sprintf, or vsprintf anymore. Essentially our entire tree has been
converted to use the safer (bounded) variants.

Comments (10 posted)

Page editor: Jonathan Corbet

Copyright © 2003, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds