1228690Sdes/*-
2228690Sdes * Copyright (c) 2011 Dag-Erling Sm��rgrav
3228690Sdes * All rights reserved.
4228690Sdes *
5228690Sdes * Redistribution and use in source and binary forms, with or without
6228690Sdes * modification, are permitted provided that the following conditions
7228690Sdes * are met:
8228690Sdes * 1. Redistributions of source code must retain the above copyright
9255376Sdes *    notice, this list of conditions and the following disclaimer.
10228690Sdes * 2. Redistributions in binary form must reproduce the above copyright
11228690Sdes *    notice, this list of conditions and the following disclaimer in the
12228690Sdes *    documentation and/or other materials provided with the distribution.
13236099Sdes * 3. The name of the author may not be used to endorse or promote
14236099Sdes *    products derived from this software without specific prior written
15236099Sdes *    permission.
16228690Sdes *
17228690Sdes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18228690Sdes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19228690Sdes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20228690Sdes * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21228690Sdes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22228690Sdes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23228690Sdes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24228690Sdes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25228690Sdes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26228690Sdes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27228690Sdes * SUCH DAMAGE.
28228690Sdes *
29348980Sdes * $OpenPAM: openpam_strlcpy.h 938 2017-04-30 21:34:42Z des $
30228690Sdes */
31228690Sdes
32228690Sdes#ifndef OPENPAM_STRLCPY_H_INCLUDED
33228690Sdes#define OPENPAM_STRLCPY_H_INCLUDED
34228690Sdes
35228690Sdes#ifndef HAVE_STRLCPY
36255376Sdessize_t openpam_strlcpy(char *, const char *, size_t);
37255376Sdes#undef strlcpy
38255376Sdes#define strlcpy(arg, ...) openpam_strlcpy(arg, __VA_ARGS__)
39228690Sdes#endif
40228690Sdes
41228690Sdes#endif
42