http: fixed mistake since I changed webroot variable.
This commit is contained in:
parent
c13eb6e607
commit
0b7ac3ff01
1 changed files with 1 additions and 1 deletions
|
@ -612,7 +612,7 @@ http_path_add(const char *path, void *opaque, http_callback_t *callback,
|
|||
if (tvheadend_webroot) {
|
||||
size_t len = strlen(tvheadend_webroot) + strlen(path) + 1;
|
||||
hp->hp_path = tmp = malloc(len);
|
||||
sprintf(tmp, "%s/%s", tvheadend_webroot, path);
|
||||
sprintf(tmp, "%s%s", tvheadend_webroot, path);
|
||||
} else
|
||||
hp->hp_path = strdup(path);
|
||||
hp->hp_len = strlen(hp->hp_path);
|
||||
|
|
Loading…
Add table
Reference in a new issue