|
|
| version 1.1.1.1, 2012/02/21 16:23:02 | version 1.1.1.2, 2013/07/22 10:46:11 |
|---|---|
| Line 1 | Line 1 |
| /* $OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 deraadt Exp $ */ | /* $OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 deraadt Exp $ */ |
| /* | /* |
| * Copyright (c) 1998, 2003-2005, 2010-2011 | * Copyright (c) 1998, 2003-2005, 2010-2011, 2013 |
| * Todd C. Miller <Todd.Miller@courtesan.com> | * Todd C. Miller <Todd.Miller@courtesan.com> |
| * | * |
| * Permission to use, copy, modify, and distribute this software for any | * Permission to use, copy, modify, and distribute this software for any |
| Line 19 | Line 19 |
| #include <config.h> | #include <config.h> |
| #ifndef HAVE_STRLCAT | |
| #include <sys/types.h> | #include <sys/types.h> |
| #include <string.h> | #include <string.h> |
| Line 58 strlcat(char *dst, const char *src, size_t siz) | Line 60 strlcat(char *dst, const char *src, size_t siz) |
| return dlen + (s - src); /* count does not include NUL */ | return dlen + (s - src); /* count does not include NUL */ |
| } | } |
| #endif /* HAVE_STRLCAT */ |