Fixed readAllBuffer() to avoid adding garbage bytes at end.
Fixed readAllBuffer() to avoid adding garbage bytes at end.

The function readAllBuffer() always returned a string that was a
multiple of the BufSize in length, regardless of how many bytes were
actually read, padding the result with garbage bytes on the last chunk.
This fix properly trims the last chunk to its actual size.

Salafit/Nim,Dhertz/Nim,russpowers/Nim,bvssvni/Nim,judofyr/Nim,reactormonk/nim,gokr/Nim,BlaXpirit/nim,haiodo/Nim,jsanjuas/Nim,singularperturbation/Nim,russpowers/Nim,gokr/Nim,Dhertz/Nim,xland/Nim,douglas-larocca/Nim,endragor/Nim,singularperturbation/Nim,endragor/Nim,fmamud/Nim,Salafit/Nim,msmith491/Nim,BlaXpirit/nim,nanoant/Nim,kirbyfan64/Nim,Salafit/Nim,SSPkrolik/Nim,JCavallo/Nim,nimLuckyBull/Nim,douglas-larocca/Nim,gokr/Nim,russpowers/Nim,sarvex/Nim-lang,jfhg/Nim,bvssvni/Nim,fredericksilva/Nim,Dhertz/Nim,jfhg/Nim,judofyr/Nim,sarvex/Nim-lang,tmm1/Nim,fredericksilva/Nim,MrJohz/Nim,nafsaka/Nim,Matt14916/Nim,nanoant/Nim,JCavallo/Nim,haiodo/Nim,endragor/Nim,douglas-larocca/Nim,haiodo/Nim,douglas-larocca/Nim,fmamud/Nim,haiodo/Nim,jfhg/Nim,Dhertz/Nim,gokr/Nim,tmm1/Nim,Senketsu/Nim,nafsaka/Nim,judofyr/Nim,jsanjuas/Nim,haiodo/Nim,sferik/Nim,fmamud/Nim,BlaXpirit/nim,bvssvni/Nim,Senketsu/Nim,fmamud/Nim,JCavallo/Nim,bvssvni/Nim,Senketsu/Nim,Senketsu/Nim,MrJohz/Nim,JCavallo/Nim,nafsaka/Nim,xland/Nim,mbaulch/Nim,Matt14916/Nim,jsanjuas/Nim,greyanubis/Nim,nimLuckyBull/Nim,Dhertz/Nim,haiodo/Nim,nanoant/Nim,xland/Nim,zachaysan/Nim,fmamud/Nim,haiodo/Nim,greyanubis/Nim,gokr/Nim,zachaysan/Nim,nanoant/Nim,JCavallo/Nim,nimLuckyBull/Nim,singularperturbation/Nim,tulayang/Nim,JCavallo/Nim,msmith491/Nim,tmm1/Nim,dom96/Nim,douglas-larocca/Nim,gokr/Nim,tmm1/Nim,BlaXpirit/nim,dom96/Nim,kirbyfan64/Nim,xland/Nim,SSPkrolik/Nim,nimLuckyBull/Nim,jsanjuas/Nim,SSPkrolik/Nim,Salafit/Nim,Matt14916/Nim,jsanjuas/Nim,zachaysan/Nim,singularperturbation/Nim,fmamud/Nim,Matt14916/Nim,greyanubis/Nim,tulayang/Nim,bvssvni/Nim,nafsaka/Nim,endragor/Nim,xland/Nim,tulayang/Nim,SSPkrolik/Nim,JCavallo/Nim,fredericksilva/Nim,nafsaka/Nim,bvssvni/Nim,fredericksilva/Nim,jfhg/Nim,nafsaka/Nim,reactormonk/nim,jfhg/Nim,mbaulch/Nim,nanoant/Nim,BlaXpirit/nim,nimLuckyBull/Nim,SSPkrolik/Nim,sferik/Nim,endragor/Nim,msmith491/Nim,MrJohz/Nim,SSPkrolik/Nim,greyanubis/Nim,jfhg/Nim,sarvex/Nim-lang,Dhertz/Nim,msmith491/Nim,reactormonk/nim,nanoant/Nim,BlaXpirit/nim,mbaulch/Nim,endragor/Nim,nafsaka/Nim,kirbyfan64/Nim,tulayang/Nim,sferik/Nim,russpowers/Nim,Dhertz/Nim,Matt14916/Nim,sferik/Nim,Senketsu/Nim,judofyr/Nim,gokr/Nim,Salafit/Nim,sferik/Nim,msmith491/Nim,douglas-larocca/Nim,sarvex/Nim-lang,msmith491/Nim,SSPkrolik/Nim,sferik/Nim,SSPkrolik/Nim,nimLuckyBull/Nim,bvssvni/Nim,russpowers/Nim,fredericksilva/Nim,dom96/Nim,Matt14916/Nim,tmm1/Nim,mbaulch/Nim,greyanubis/Nim,reactormonk/nim,mbaulch/Nim,gokr/Nim,fredericksilva/Nim,Salafit/Nim,xland/Nim,reactormonk/nim,Salafit/Nim,Matt14916/Nim,singularperturbation/Nim,Senketsu/Nim,jfhg/Nim,fmamud/Nim,jsanjuas/Nim,kirbyfan64/Nim,fredericksilva/Nim,jsanjuas/Nim,reactormonk/nim,dom96/Nim,russpowers/Nim,tulayang/Nim,MrJohz/Nim,dom96/Nim,sarvex/Nim-lang,tulayang/Nim,BlaXpirit/nim,judofyr/Nim,reactormonk/nim,judofyr/Nim,mbaulch/Nim,msmith491/Nim,judofyr/Nim,douglas-larocca/Nim,zachaysan/Nim,greyanubis/Nim,mbaulch/Nim,singularperturbation/Nim,MrJohz/Nim,BlaXpirit/nim,dom96/Nim,MrJohz/Nim,sarvex/Nim-lang,sarvex/Nim-lang,Senketsu/Nim,MrJohz/Nim,zachaysan/Nim,reactormonk/nim,judofyr/Nim,sferik/Nim,kirbyfan64/Nim,endragor/Nim,russpowers/Nim,kirbyfan64/Nim,singularperturbation/Nim,tmm1/Nim,dom96/Nim,fredericksilva/Nim,douglas-larocca/Nim,xland/Nim,tmm1/Nim,greyanubis/Nim,kirbyfan64/Nim,nimLuckyBull/Nim,nanoant/Nim,sferik/Nim,zachaysan/Nim,zachaysan/Nim,kirbyfan64/Nim