More cleanup

Removed q as it did nothing, cast address of buffer to char * to remove
warning