fixed incorrect allocation size

i had switched up the space allocated
for a buffer's bpath and name