fixed buffer-length bug in 1up.c

Thanks Andy Dalton!