We theoretically examine the effect of external optical injection on the spatio-temporal dynamics of class-B broad-area lasers. We demonstrate that optical injection can efficiently stabilize the intrinsic transverse instabilities in such lasers associated with both the boundaries of the pumping area and with the bulk nonlinearities of the active medium. Stabilizing action of optical injection is shown to be closely related to the suppression of inherent relaxation oscillations behavior.