modified for loop in validate buffer
Merge branch 'master' of https://github.com/ldowson/cs140winter2014