[PATCH 2/8] Fixed compile error where &buf was missing