Children's wear retailer Carter's has improved its second quarter earnings despite flat sales during the period.