Fixed wrong buf len in sh.h