change a strlcpy call to memcpy - hurl - Gopher/HTTP/HTTPS file grabber | |
git clone git://git.codemadness.org/hurl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 709837bd458957d4a2f538123d45916184f81c3e | |
parent e481c652faf5477538afdcc73ab7c11f4391bfd3 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 10 Nov 2019 14:33:40 +0100 | |
change a strlcpy call to memcpy | |
Diffstat: | |
M hurl.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; | |
} |