I think it is safe for the electronics if you keep both cars turned OFF when connecting the cables. Connect the cables making the last connection to the car with the dead battery at a ground away from the battery so that the spark cannot set off the hydrogen. Keep the GOOD car off, this protects its alternator and electronics. Start the car with the dead battery. Disconnect the cables disconnecting first the ground cable away from the battery.
Be SURE you do not EVER!!!!! connect the cables with the + and - reversed or let them touch each other. This can cause BIG$$$ problems. Mark