Fix two snprintfs