Don't dereference the pointers. Catch by Thomas.
authorBrandon Turner <turnerb7@msu.edu>
Thu, 25 Aug 2005 22:09:10 +0000 (22:09 +0000)
committerBrandon Turner <turnerb7@msu.edu>
Thu, 25 Aug 2005 22:09:10 +0000 (22:09 +0000)
svn path=/trunk/; revision=17548

reactos/subsys/system/cmd/redir.c

index 436297e..21848c3 100644 (file)
@@ -250,8 +250,8 @@ INT GetRedirection (LPTSTR s, LPTSTR ifn, LPTSTR ofn, LPTSTR efn, LPINT lpnFlags
        {
                if (*sp == _T('^'))
                {
-                       *sp++;
-                       *sp++;
+                       sp++;
+                       sp++;
                        continue;
                }
                else if ((*sp == _T('"')) || (*sp == _T('\'')))