Re: strcpy versus strncpy

From: Steve Bellovin (smbat_private)
Date: Thu Mar 05 1998 - 09:07:18 PST

  • Next message: D. J. Bernstein: "the purpose of dynamic memory allocation"

    Classic UNIX -- i.e., 7th Edition and the like, before Berkeley --
    had no limit on path length in the kernel.  Assorted applications
    often did have fixed-length buffers, of course, but not the kernel.
    A path name was fetched one byte at a time, and analyzed one
    component at a time.  (For fun, I just went back and reviewed the
    code in my ancient copy of the Lions commentary on the 6th Edition
    kernel...)
    



    This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 13:44:17 PDT