seems nobody tried to run nq-server on a 64 bit system...

This commit is contained in:
Bill Currie 2007-04-08 10:06:49 +00:00 committed by Jeff Teunissen
parent 1d2a7e2eff
commit 0aaab839c6

View file

@ -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;