To safely charge a battery in situe, I would simply remove the positive lead for the car first.
Stories of blowing stuff up when jumping are usually the result of bad lead positioning. You shouldn't really connect both batteries directly together. The safer way to do it is Positive to Positive, and the negative from the supply car should be connected to the body of the flat car, not the battery.