From d02b6ddd6925d09837c3867a43b76926dcd3d3cc Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 24 Jan 2015 02:00:06 +0100 Subject: [PATCH] (net_http.c) Move back to strcpy --- net_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net_http.c b/net_http.c index bd803b7397..2201cb58de 100644 --- a/net_http.c +++ b/net_http.c @@ -181,7 +181,7 @@ http_t *net_http_new(const char * url) http_t *state = NULL; char *urlcopy =(char*)malloc(strlen(url)+1); - strlcpy(urlcopy, url, sizeof(urlcopy)); + strcpy(urlcopy, url); if (!net_http_parse_url(urlcopy, &domain, &port, &location)) goto fail;