Don't dereference the pointers. Catch by Thomas.
[reactos.git] / 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('\'')))