Fix bug in stack creation which would count one extra argument for argc

This commit is contained in:
Themis Demetriades
2024-11-06 23:57:48 +00:00
parent 1ca9d09512
commit 26ae7ac02e

View File

@@ -102,7 +102,7 @@ start_process (void *file_name_)
struct list arg_list;
list_init (&arg_list);
int arg_count = 1;
int arg_count = 0;
while (arg != NULL)
{
push_to_stack (&if_.esp, arg, (strlen (arg) + 1) * sizeof (char));