Emergency officials and jittery residents in the high desert of Southern California braced for potentially dangerous aftershocks from a major earthquake that damaged buildings, ruptured gas lines and sparked fires near the remote epicenter of the temblor.