There was an error while loading. Please reload this page.
1 parent 184b2b2 commit 52135eaCopy full SHA for 52135ea
1 file changed
src/command.c
@@ -2825,6 +2825,7 @@ static void perform_elfexec(const char *arg)
2825
{
2826
#if defined(DJ64) && !defined(DJ32) && defined(SIFLG_STATIC)
2827
int rc;
2828
+ char *argv[] = { NULL, NULL };
2829
#endif
2830
if (!arg || !arg[0])
2831
@@ -2833,7 +2834,9 @@ static void perform_elfexec(const char *arg)
2833
2834
return;
2835
}
2836
- rc = elfexec(arg, 0, NULL);
2837
+ argv[0] = strdup(arg);
2838
+ rc = elfexec(arg, 1, argv);
2839
+ free(argv[0]);
2840
if (rc == -1)
2841
printf("elfexec failed%s\n", (_stubinfo->flags & SIFLG_STATIC) ?
2842
" due to static linking" : "");
0 commit comments