projects
/
ttyd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b5230d
)
http: lws_snprintf -> snprintf
author
Shuanglei Tao
<tsl0922@gmail.com>
Sat, 18 Aug 2018 09:24:52 +0000
(17:24 +0800)
committer
Shuanglei 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
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index 42478e2bc18a0228072fdaccc74e6568465738c8..fbfe8775ed04c45c0743d6e8932dd4c7475a40dc 100644
(file)
--- 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);