change a strlcpy call to memcpy - hurl - Gopher/HTTP/HTTPS file grabber
(HTM) git clone git://git.codemadness.org/hurl
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 709837bd458957d4a2f538123d45916184f81c3e
(DIR) parent e481c652faf5477538afdcc73ab7c11f4391bfd3
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
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(-)
---
(DIR) 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;
}