Strategy for buying a car when your only car is very ill.

I know I have a head gasket issue and I feel like every day I drive with it is a blessing. But it could blow any time. What could I be doing to purchase a car knowing this?