fix auto-addition of -dedictated

This commit is contained in:
Bill Currie 2004-01-27 05:38:34 +00:00
parent 7ff1534e9d
commit c1a43705da
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ main (int argc, const char **argv)
for (i = 1; i < argc; i++)
if (!strcmp (argv[i], "-dedicated"))
break;
if (i != argc) {
if (i == argc) {
const char **newargv;
newargv = malloc ((argc + 2) * sizeof (*newargv));

View file

@ -69,7 +69,7 @@ main (int argc, const char **argv)
for (i = 1; i < argc; i++)
if (!strcmp (argv[i], "-dedicated"))
break;
if (i != argc) {
if (i == argc) {
const char **newargv;
newargv = malloc ((argc + 2) * sizeof (*newargv));