Error Analysis of a Second-Order Method on Fitted Meshes for a Time-Fractional Diffusion Problem