changed buff from long to char; thanks to woggle from
irc://irc.freenode.net/##crypto