snprintf to sprintf to cut some bytes