diff --git a/src/main.c b/src/main.c index 8a2323f8..73109c21 100644 --- a/src/main.c +++ b/src/main.c @@ -560,7 +560,7 @@ main(int argc, char **argv) if (*tvheadend_webroot == '/') tmp = strdup(tvheadend_webroot); else { - tmp = malloc(strlen(tvheadend_webroot)+1); + tmp = malloc(strlen(tvheadend_webroot)+2); *tmp = '/'; strcpy(tmp+1, tvheadend_webroot); }