mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
seems nobody tried to run nq-server on a 64 bit system...
This commit is contained in:
parent
1d2a7e2eff
commit
0aaab839c6
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ main (int argc, const char **argv)
|
|||
if (i == argc) {
|
||||
const char **newargv;
|
||||
|
||||
newargv = malloc ((argc + 2) * sizeof (*newargv));
|
||||
memcpy (newargv, argv, argc * 4);
|
||||
newargv = malloc ((argc + 2) * sizeof (char *));
|
||||
memcpy (newargv, argv, argc * sizeof (char *));
|
||||
newargv[argc++] = "-dedicated";
|
||||
newargv[argc] = 0;
|
||||
argv = newargv;
|
||||
|
|
Loading…
Reference in a new issue