commit 15fde36f47dc6c9c62b6ce1713c2c1c72909dcc7
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Jun 25 16:56:22 2018 +0100
Update webserver.patch
webserver.patch | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
---
diff --git a/webserver.patch b/webserver.patch
index 5607502..0a67262 100644
--- a/webserver.patch
+++ b/webserver.patch
@@ -1,24 +1,11 @@
-diff -rup smplayer-18.2.0/webserver/Makefile smplayer-18.2.2/webserver/Makefile
---- smplayer-18.2.0/webserver/Makefile 2017-01-15 11:13:39.000000000 +0000
-+++ smplayer-18.2.2/webserver/Makefile 2018-02-19 17:01:16.489112267 +0000
+--- ./webserver/Makefile.orig 2018-05-27 18:32:46.000000000 +0100
++++ webserver/Makefile 2018-06-25 16:54:36.909418157 +0100
@@ -2,7 +2,7 @@ PROG = simple_web_server
- MODULE_CFLAGS=-DMG_DISABLE_DAV_AUTH -DMG_ENABLE_HTTP_CGI=0 -DMG_ENABLE_THREADS=0
+ MODULE_CFLAGS=-DMG_DISABLE_DAV_AUTH -DMG_ENABLE_HTTP_CGI=0 -DMG_ENABLE_THREADS=0
-DMG_ENABLE_HTTP_SSI=0
SOURCES = main.c mongoose.c
-CFLAGS = -O2 -W -Wall -Werror -Wno-unused-function $(CFLAGS_EXTRA) $(MODULE_CFLAGS)
+CFLAGS = -O2 -W -Wall -Werror -Wno-unused-function -Wno-format-truncation
$(CFLAGS_EXTRA) $(MODULE_CFLAGS)
ifeq ($(OS), Windows_NT)
- CFLAGS += -lws2_32
-diff -rup smplayer-18.2.2/webserver/mongoose.c smplayer-18.2.0/webserver/mongoose.c
---- smplayer-18.2.2/webserver/mongoose.c 2017-01-10 18:06:03.000000000 +0000
-+++ smplayer-18.2.0/webserver/mongoose.c 2018-02-19 05:41:51.135640350 +0000
-@@ -10789,6 +11655,8 @@ int mg_resolve_async_opt(struct mg_mgr *
- }
-
- strncpy(req->name, name, sizeof(req->name));
-+ req->name[sizeof(req->name) - 1] = '\0';
-+
- req->query = query;
- req->callback = cb;
- req->data = data;
+ CFLAGS += -lws2_32 -Wno-format
Show replies by date