summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2018-10-03 16:01:10 +0200
committerhorchi <vdr@jwendel.de>2018-10-03 16:01:10 +0200
commite8781e497a86af36db0aa595f8322f2947815fc3 (patch)
treed68640c50f9c971f341a7ea1fde0ddf658ded71a /httpd.c
parent3cb6966a65b0102f9016c0c6c9ed33dfe5fee913 (diff)
downloadvdr-epg-daemon-e8781e497a86af36db0aa595f8322f2947815fc3.tar.gz
vdr-epg-daemon-e8781e497a86af36db0aa595f8322f2947815fc3.tar.bz2
mor compiler warnings
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index 5999fe9..d8e8687 100644
--- a/httpd.c
+++ b/httpd.c
@@ -1617,7 +1617,7 @@ int cEpgHttpd::performHttpGet(MHD_Connection* tcp, const char* inurl, MemoryStru
{
const char* encoding = MHD_lookup_connection_value(tcp, MHD_HEADER_KIND, "Accept-Encoding");
- sprintf(data->name, "%.*s", (int)sizeof(data->name), url);
+ sprintf(data->name, "%.*s", (int)sizeof(data->name)-1, url);
if (encoding && strstr(encoding, "gzip"))
{