Fix argv index in MakeDrive for mv command name
This commit is contained in:
2
drive.c
2
drive.c
@ -517,7 +517,7 @@ int MakeDrive(SConnection * pCon, SicsInterp * pSics, void *pData,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (argc > 3) {
|
if (argc > 3) {
|
||||||
iRet = AddCommand(pSics, argv[2], MoveWrapper, NULL, NULL);
|
iRet = AddCommand(pSics, argv[3], MoveWrapper, NULL, NULL);
|
||||||
} else {
|
} else {
|
||||||
iRet = AddCommand(pSics, "mv", MoveWrapper, NULL, NULL);
|
iRet = AddCommand(pSics, "mv", MoveWrapper, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user