From e0d400cdbbf4ff17eb6b36af6cde4b171ed1a26f Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Fri, 3 Jul 2015 09:12:30 +1000 Subject: [PATCH] Fix argv index in MakeDrive for mv command name --- drive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive.c b/drive.c index e49aef99..d5be804d 100644 --- a/drive.c +++ b/drive.c @@ -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); }