got the mute working correctly... and no more buffer overflow in the tmpbuf comment issue