How do I cure charley horse?

First. Avoid dehydration. Second, often low serum potassium is an issue. Eat bananas.