sizeof(char*) returns size of pointer, not the actual length of the buffer.