p needs to be a constant, and cannot be just **"char *"**, because cmd is **"const char *"** and **r_cmd_java_consumetok** returns a pointer that points into **cmd**