Buf fix: sizeof() on pointer has been replaced with strlen()