- Fix - allocate space for the '\0' character for tvheadend_webroot
This commit is contained in:
parent
4f3cf8e695
commit
3b38a9e012
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue