fix char* declaration mistake