Author: cwittich
Date: Sun Jan 20 17:41:22 2008
New Revision: 31904
URL:
http://svn.reactos.org/svn/reactos?rev=31904&view=rev
Log:
startpos is zero based
Modified:
trunk/reactos/base/shell/cmd/cmd.c
Modified: trunk/reactos/base/shell/cmd/cmd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmd.c?rev=3…
==============================================================================
--- trunk/reactos/base/shell/cmd/cmd.c (original)
+++ trunk/reactos/base/shell/cmd/cmd.c Sun Jan 20 17:41:22 2008
@@ -1172,7 +1172,7 @@
i++;
Token = _tcstok (NULL, _T(","));
}
- _tcsncpy(ReturnValue, ret + (1 - StringPart[0]), StringPart[1]);
+ _tcsncpy(ReturnValue, ret + StringPart[0], StringPart[1]);
_tcscpy(ret, ReturnValue);
return ret;
}