Minor fix on buffer allocation for sysread.