Nonlinear spectrum distortions are caused by the peculiarities of the operation of charge-coupled device elements (CCD), in which the signal exposition time (Time of INTegration–TINT) is one of the significant parameters. A change of TINT on a CCD leads to a nonlinear distortion of the resulting spectrum. A nonlinear distortion of the spectrum, in turn, leads to errors in determining the central wavelength of fiber Bragg gratings (FBGs) and spectrally sensitive sensors, which, in general, negatively affects the accuracy of the measuring systems. This paper proposes an algorithm for correcting the nonlinear distortions of the spectrum obtained on a spectrum analyzer using CCD as a receiver. It is shown that preliminary calibration of the optical spectrum analyzer with subsequent mathematical processing of the signal makes it possible to make corrections in the resulting spectrum, thereby leveling the errors caused by measurements at different TINT.