Only read the needed size if smaller than BUFSIZ
Fix pkg install -A