csum-file: fix missing buf pointer update