dom0: fix cmdline of DispVM guid (#248)

This commit is contained in:
Marek Marczykowski 2011-07-02 22:44:49 +02:00
parent 4c69dbb7d9
commit d16b6f24f9

View File

@ -166,14 +166,14 @@ void start_guid(int domid, int argc, char **argv)
{
int i;
char dstr[40];
char *guid_args[argc + 2];
char *guid_args[argc + 1];
snprintf(dstr, sizeof(dstr), "%d", domid);
guid_args[0] = "qubes_guid";
guid_args[1] = "-d";
guid_args[2] = dstr;
for (i = 3; i < argc; i++)
guid_args[i + 1] = argv[i];
guid_args[argc + 1] = NULL;
guid_args[i] = argv[i];
guid_args[argc] = NULL;
execv("/usr/bin/qubes_guid", guid_args);
perror("execv");
}