summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
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"))
{