Author: cwittich
Date: Sat Feb 2 12:29:42 2008
New Revision: 32082
URL:
http://svn.reactos.org/svn/reactos?rev=32082&view=rev
Log:
fix length calculation for :~
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 Sat Feb 2 12:29:42 2008
@@ -1186,7 +1186,7 @@
if (i > 0)
{
if (StringPart[1] < 0)
- StringPart[1] = _tcslen(ret + StringPart[0]) - 1 + StringPart[1];
+ StringPart[1] = _tcslen(ret + StringPart[0]) + StringPart[1];
_tcsncpy(ReturnValue, ret + StringPart[0], StringPart[1]);
_tcscpy(ret, ReturnValue);
}