The software company’s second-quarter earnings beat expectations, but not by a wide-enough margin.