Fixed buffer being a char instead of a pointer issues