- Fix - allocate space for the '\0' character for tvheadend_webroot

This commit is contained in:
Benny Morgan 2013-06-30 22:13:20 +02:00
parent 4f3cf8e695
commit 3b38a9e012

View file

@ -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);
}