summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sandbox/os/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c
index 90486f889f..d63a2f4063 100644
--- a/arch/sandbox/os/common.c
+++ b/arch/sandbox/os/common.c
@@ -317,7 +317,7 @@ int main(int argc, char *argv[])
break;
case 'e':
sprintf(str, "env%d", envno);
- ret = add_image(optarg, "env");
+ ret = add_image(optarg, str);
if (ret)
exit(1);
envno++;