mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 14:42:06 +00:00
Fixes segfault in uquake-x11
This commit is contained in:
parent
29f088f349
commit
fd349f60f1
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ void COM_InitArgv (int argc, char **argv)
|
|||
largv[com_argc] = argv[com_argc];
|
||||
if ((argv[com_argc]) && !Q_strcmp ("-safe", argv[com_argc]))
|
||||
safe = true;
|
||||
len += strlen (argv[com_argc]) + 2;
|
||||
len += strlen (argv[com_argc]) + 1;
|
||||
}
|
||||
|
||||
com_cmdline = (char*)malloc (len); // len is strlen(com_cmdline)+1 already
|
||||
|
|
Loading…
Reference in a new issue