initialize buffer so that empty format output does not cause strlen() to overrun