fix some buffer overruns
fix some buffer overruns

Motiejus/sox,Motiejus/sox,CaptainHayashi/sox,uklauer/sox,mhartzel/sox_personal_fork,Distrotech/sox,uklauer/sox,cbagwell/sox,jacksonh/sox,CaptainHayashi/sox,cbagwell/sox,MageSlayer/sox,CaptainHayashi/sox,davel/sox,Distrotech/sox,davel/sox,davel/sox,mhartzel/sox_personal_fork,uklauer/sox,pcqpcq/sox,davel/sox,Distrotech/sox,Distrotech/sox,CaptainHayashi/sox,jacksonh/sox,uklauer/sox,Motiejus/sox,cbagwell/sox,jacksonh/sox,pcqpcq/sox,mhartzel/sox_personal_fork,MageSlayer/sox,pcqpcq/sox,jacksonh/sox,cbagwell/sox,Motiejus/sox,MageSlayer/sox,MageSlayer/sox,pcqpcq/sox,mhartzel/sox_personal_fork,MageSlayer/sox