| 77 |
|
|
| 78 |
|
extern int errno; |
| 79 |
|
|
| 80 |
< |
/* Taken from the openssh code. Its licence included in function.*/ |
| 81 |
< |
//#ifndef HAVE_STRLCAT |
| 80 |
> |
/* Taken from the OpenSSH code. Its licence included in function.*/ |
| 81 |
> |
#ifndef HAVE_STRLCAT |
| 82 |
|
|
| 83 |
|
/* |
| 84 |
|
* Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> |
| 106 |
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 107 |
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 108 |
|
*/ |
| 109 |
+ |
|
| 110 |
|
/* |
| 111 |
|
* Appends src to string dst of size siz (unlike strncat, siz is the |
| 112 |
|
* full size of dst, not space left). At most siz-1 characters |
| 145 |
|
return(dlen + (s - src)); /* count does not include NUL */ |
| 146 |
|
} |
| 147 |
|
|
| 148 |
< |
//#endif |
| 149 |
< |
|
| 148 |
> |
#endif |
| 149 |
> |
/* End strlcat function taken from OpenSSH */ |
| 150 |
|
|
| 151 |
|
void log_msg(int level, char *format, ...){ |
| 152 |
|
int cur_errno; |