add 1 for segname in buffer