Fix argv index in MakeDrive for mv command name
This commit is contained in:
1 parent
8a4192dc41
commit
e0d400cdbb
1 file changed
+1
-1
@@ -517,7 +517,7 @@ int MakeDrive(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
}
|
||||
|
||||
if (argc > 3) {
|
||||
iRet = AddCommand(pSics, argv[2], MoveWrapper, NULL, NULL);
|
||||
iRet = AddCommand(pSics, argv[3], MoveWrapper, NULL, NULL);
|
||||
} else {
|
||||
iRet = AddCommand(pSics, "mv", MoveWrapper, NULL, NULL);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user