update rshell.cpp with a char array allocate bug