fix broken max-length check
fix broken max-length check

btd/buffer,LiuDeng/buffer,feross/buffer,beni55/buffer,SAGV/buffer,beni55/buffer,feross/buffer,kawanet/buffer,kawanet/buffer,LinusU/buffer,feross/buffer,loon3/buffer,jessetane/buffer,btd/buffer,nolanlawson/buffer,LinusU/buffer,LiuDeng/buffer,nolanlawson/buffer,loon3/buffer,SAGV/buffer