Re: safe strcpy()?
From: Ed Carp (erc@pobox.com)
Date: 01/30/03
- Previous message: Ben Pfaff: "Re: safe strcpy()?"
- In reply to: Ben Pfaff: "Re: safe strcpy()?"
- Next in thread: Timo Sirainen: "Re: safe strcpy()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 29 Jan 2003 19:54:43 -0600 (CST) From: Ed Carp <erc@pobox.com> To: Ben Pfaff <blp@cs.stanford.edu>
On 29 Jan 2003, Ben Pfaff wrote:
> As a result, strncpy() is hardly ever the right function to use.
> strlcpy() from OpenBSD is usually a better choice.
The problem with strlcpy is that there's no autpmated way to retrofit old
code with it. It's great for new code development, though.
-- Ed Carp, N7EKG http://www.pobox.com/~erc 214/986-5870 Licensed Texas Peace Officer Computer Crime Investigation Consultant Director, Software Development Escapade Server-Side Scripting Engine Development Team http://www.squishedmosquito.com Microsoft Front Page - the official HTML editor of Al Qaeda Microsoft Hotmail - the official email of Al Qaeda
- Next message: Crispin Cowan: "Re: safe strcpy()?"
- Previous message: Ben Pfaff: "Re: safe strcpy()?"
- In reply to: Ben Pfaff: "Re: safe strcpy()?"
- Next in thread: Timo Sirainen: "Re: safe strcpy()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]