diff --git a/common/qargs.c b/common/qargs.c index f18d270..4a11b2c 100644 --- a/common/qargs.c +++ b/common/qargs.c @@ -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