Changeset 554 in openpam for trunk/lib


Ignore:
Timestamp:
Apr 2, 2012, 9:46:48 AM (9 years ago)
Author:
Dag-Erling Smørgrav
Message:

Add strlcat() for non-BSD systems.
strlcpy() needs to be static.

Location:
trunk/lib
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Makefile.am

    r547 r554  
    1111        openpam_debug.h \
    1212        openpam_impl.h \
     13        openpam_strlcat.h \
    1314        openpam_strlcmp.h \
    1415        openpam_strlcpy.h
  • trunk/lib/openpam_configure.c

    r547 r554  
    5252#include "openpam_impl.h"
    5353#include "openpam_ctype.h"
    54 #include "openpam_strlcmp.h"
     54#include "openpam_strlcat.h"
     55#include "openpam_strlcpy.h"
    5556
    5657static int openpam_load_chain(pam_handle_t *, const char *, pam_facility_t);
  • trunk/lib/openpam_strlcpy.h

    r492 r554  
    3333#ifndef HAVE_STRLCPY
    3434/* like strcpy(3), but always NUL-terminates; returns strlen(src) */
    35 size_t
     35static size_t
    3636strlcpy(char *dst, const char *src, size_t size)
    3737{
Note: See TracChangeset for help on using the changeset viewer.