fix uninitialized use of 'buflen'