Since inputbuf is NULL lets initialize this to 0 since it's meant to represent the size of inputbuf.