From 0b7ac3ff01ec4eefbcc1583a2707de7ff73a08cd Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sat, 5 Jan 2013 20:15:24 +0000 Subject: [PATCH] http: fixed mistake since I changed webroot variable. --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index e87ec543..a0135551 100644 --- a/src/http.c +++ b/src/http.c @@ -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);