From e8781e497a86af36db0aa595f8322f2947815fc3 Mon Sep 17 00:00:00 2001 From: horchi Date: Wed, 3 Oct 2018 16:01:10 +0200 Subject: mor compiler warnings --- webdo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webdo.c') 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 { -- cgit v1.2.3