From d1d5336af17a76c324e171e6e879eeb231d81637 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sat, 18 Aug 2018 17:24:52 +0800 Subject: [PATCH] http: lws_snprintf -> snprintf lws_snprintf is not available in libwebsockets 1.7.1 --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index 42478e2..fbfe877 100644 --- a/src/http.c +++ b/src/http.c @@ -64,7 +64,7 @@ callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user, voi return 0; } - lws_snprintf(pss->path, sizeof(pss->path), "%s", (const char *)in); + snprintf(pss->path, sizeof(pss->path), "%s", (const char *)in); lws_get_peer_addresses(wsi, lws_get_socket_fd(wsi), name, sizeof(name), rip, sizeof(rip)); lwsl_notice("HTTP %s - %s (%s)\n", (char *) in, rip, name); -- 2.43.4