This commit is contained in:
twinaphex 2016-04-22 08:13:39 +02:00
parent 416898cddd
commit a179f789aa

View File

@ -29,6 +29,8 @@
/* Implementation of strlcpy()/strlcat() based on OpenBSD. */
#ifndef __MACH__
size_t strlcpy(char *dest, const char *source, size_t size)
{
size_t src_size = 0;
@ -59,3 +61,4 @@ size_t strlcat(char *dest, const char *source, size_t size)
return len + strlcpy(dest, source, size);
}
#endif