summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/common/loader.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/common/loader.c b/ui/common/loader.c
index 775f211..74b3c76 100644
--- a/ui/common/loader.c
+++ b/ui/common/loader.c
@@ -122,7 +122,7 @@ fail:
static char *pb_load_sftp(void *ctx, struct pb_url __attribute__((unused)) *url)
{
int result;
- const char *argv[5];
+ const char *argv[4];
const char **p;
char *local;
@@ -132,11 +132,10 @@ static char *pb_load_sftp(void *ctx, struct pb_url __attribute__((unused)) *url)
return NULL;
p = argv;
- *p++ = pb_system_apps.sftp; /* 1 */
- *p++ = url->host; /* 2 */
- *p++ = url->path; /* 3 */
- *p++ = local; /* 4 */
- *p++ = NULL; /* 5 */
+ *p++ = pb_system_apps.sftp; /* 1 */
+ *p++ = talloc_asprintf(local, "%s:%s", url->host, url->path); /* 2 */
+ *p++ = local; /* 3 */
+ *p++ = NULL; /* 4 */
result = pb_run_cmd(argv, 1, 0);
OpenPOWER on IntegriCloud