Remove unnecessary buffer zeroing. We always replace that current pos with a null terminator, so it doesn't matter what follows it.