Skip to content
  • Mark Adler's avatar
    Replace use of unsafe string functions with snprintf if available. · c58f7ab2
    Mark Adler authored
    This avoids warnings in OpenBSD that apparently can't be turned
    off whenever you link strcpy, strcat, or sprintf.  When snprintf
    isn't available, the use of the "unsafe" string functions has
    always in fact been safe, since the lengths are all checked before
    those functions are called.
    
    We do not use strlcpy or strlcat, since they are not (yet) found on
    all systems.  snprintf on the other hand is part of the C standard
    library and is very common.
    c58f7ab2