Ok, malloc for buf