fix the size of the buffer allocated for pipemsg

I think it should be 'sizeof(char)' instead of 'sizeof(char *)' logically. Thanks.