Corrected "lef write" command to act as advertised and take a

filename as the next argument.
This commit is contained in:
Tim Edwards 2017-10-05 22:18:10 -04:00
parent 909c3a8c6a
commit b26c7de6f6
1 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,8 @@ CmdLef(w, cmd)
} }
else goto wrongNumArgs; else goto wrongNumArgs;
} }
else goto wrongNumArgs; else if (i != 2) /* Is argument a filename? */
goto wrongNumArgs;
} }
if (cmd->tx_argc != 2 && cmd->tx_argc != 3) goto wrongNumArgs; if (cmd->tx_argc != 2 && cmd->tx_argc != 3) goto wrongNumArgs;
if (selectedUse == NULL) if (selectedUse == NULL)