mailing list of musl libc
 help / color / mirror / code / Atom feed
bb8ebb474abb6cf1f3b5fca1f2705870b0de199d blob 209 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
#define _BSD_SOURCE
#include <string.h>

size_t __strscpy(char *, const char *, size_t);

size_t strlcpy(char *d, const char *s, size_t n)
{
	const size_t r = __strscpy(d, s, n);

	return r + strlen(s + r);
}
debug log:

solving bb8ebb47 ...
found bb8ebb47 in https://inbox.vuxu.org/musl/20170715195541.3136-4-nwmcsween@gmail.com/
found 193d7241 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 193d724130eca36d7939819e2d7ec94889dca3ef	src/string/strlcpy.c

applying [1/1] https://inbox.vuxu.org/musl/20170715195541.3136-4-nwmcsween@gmail.com/
diff --git a/src/string/strlcpy.c b/src/string/strlcpy.c
index 193d7241..bb8ebb47 100644

Checking patch src/string/strlcpy.c...
Applied patch src/string/strlcpy.c cleanly.

index at:
100644 bb8ebb474abb6cf1f3b5fca1f2705870b0de199d	src/string/strlcpy.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).