Re: strcpy versus strncpy

From: Dean Gaudet (dgaudet-list-bugtraqat_private)
Date: Mon Mar 02 1998 - 17:38:38 PST

  • Next message: Jeff Murphy: "Re: overwrite any file with updatedb"

    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
    



    This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 13:43:38 PDT