hurl

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 709837bd458957d4a2f538123d45916184f81c3e
parent e481c652faf5477538afdcc73ab7c11f4391bfd3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 10 Nov 2019 14:33:40 +0100

change a strlcpy call to memcpy

Diffstat:
Mhurl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hurl.c b/hurl.c @@ -110,7 +110,7 @@ parseuri(const char *s, struct uri *u) } if (u->host[0]) { p = &p[strspn(p, "/")]; - strlcpy(u->path, "/", sizeof(u->path)); + memcpy(u->path, "/", 2); } else { return -1; }