diff options
Diffstat (limited to 'loader2/hdinstall.c')
-rw-r--r-- | loader2/hdinstall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader2/hdinstall.c b/loader2/hdinstall.c index 2eab4bc0e..1a34b294c 100644 --- a/loader2/hdinstall.c +++ b/loader2/hdinstall.c @@ -202,7 +202,7 @@ static char * setupIsoImages(char * device, char * dirName, char * location) { goto err; } else { rc = asprintf(&url, "hd:%s:%s:/%s", - strrchr(device, '/')+1, + device, *type, dirName ? dirName : "."); return url; } @@ -230,7 +230,7 @@ static char * setupIsoImages(char * device, char * dirName, char * location) { } else { queryIsoMediaCheck(path); free(path); - rc = asprintf(&url, "hd:%s:%s:/%s", strrchr(device, '/')+1, + rc = asprintf(&url, "hd:%s:%s:/%s", device, *type, dirName ? dirName : "."); return url; } |