http: fixed mistake since I changed webroot variable.

This commit is contained in:
Adam Sutton 2013-01-05 20:15:24 +00:00
parent c13eb6e607
commit 0b7ac3ff01

View file

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