Bugtraq mailing list archives

Re: strcpy versus strncpy


From: dgaudet-list-bugtraq () ARCTIC ORG (Dean Gaudet)
Date: Mon, 2 Mar 1998 17:38:38 -0800


You forgot:

4. strncpy is required to zero-fill the entire destination, which can be
quite a performance pig if the destination is big and the strncpy is
executed frequently.

Dean



Current thread: