Your doctor could prescribe any one of dozens of medications. It is highly unlikely that you got the wrong one, but talk to your pharmacist if you are seriously concerned.
There are several antibiotics that can be used: Amoxycillin, Cephalexin, Cloxacillin, Amoxyclav, Flagyl and many more. As long as it is an antibiotic it will most probably be right!