]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
http: fixed mistake since I changed webroot variable.
authorAdam Sutton <dev@adamsutton.me.uk>
Sat, 5 Jan 2013 20:15:24 +0000 (20:15 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Sat, 5 Jan 2013 20:15:46 +0000 (20:15 +0000)
src/http.c

index e87ec54323a5efcf5494a24b6cc48bf098f4ab77..a01355512010146a77692d319dc41934b39ea0a2 100644 (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);