http: lws_snprintf -> snprintf
authorShuanglei Tao <tsl0922@gmail.com>
Sat, 18 Aug 2018 09:24:52 +0000 (17:24 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Sat, 18 Aug 2018 09:24:57 +0000 (17:24 +0800)
lws_snprintf is not available in libwebsockets 1.7.1

src/http.c

index 42478e2bc18a0228072fdaccc74e6568465738c8..fbfe8775ed04c45c0743d6e8932dd4c7475a40dc 100644 (file)
@@ -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);