Jason Edmeades : cmd: Don' t overflow parameter length when copying substring.