http: lws_snprintf -> snprintf

lws_snprintf is not available in libwebsockets 1.7.1
This commit is contained in:
Shuanglei Tao
2018-08-18 17:24:52 +08:00
parent 5b5230dfff
commit d1d5336af1

View 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);