Skip to content

Commit

Permalink
c1args: can now use malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Jul 28, 2024
1 parent 94ec158 commit 03033b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libc/crt0/c1args.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ __crt0_setup_arguments(void)
{
fc = _stubinfo->argv0;
}
argv0 = (char *)calloc(1, ls-__dos_argv0+strlen(fc)+1);
argv0 = (char *)malloc(ls-__dos_argv0+strlen(fc)+1);
if (ls == __dos_argv0)
strlcpy(argv0, fc, 16+1);
else
Expand Down

0 comments on commit 03033b7

Please sign in to comment.