summaryrefslogtreecommitdiff
path: root/webdo.c
diff options
context:
space:
mode:
Diffstat (limited to 'webdo.c')
-rw-r--r--webdo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/webdo.c b/webdo.c
index a07deb1..a7d0f40 100644
--- a/webdo.c
+++ b/webdo.c
@@ -587,7 +587,7 @@ int cEpgHttpd::doChannelLogo(MHD_Connection* tcp, json_t* obj, MemoryStruct* dat
if (strcasecmp(suffixOf(path), "svg") == 0)
{
if (loadFromFile(path, data) == success)
- sprintf(data->name, "%.*s", (int)sizeof(data->name), path);
+ sprintf(data->name, "%.*s", (int)sizeof(data->name)-1, path);
}
else
{