mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-26 20:54:21 +01:00
http: lws_snprintf -> snprintf
lws_snprintf is not available in libwebsockets 1.7.1
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user