I had a rottweiler charge me while walking. I heard him bark and seen him running towards me and gripped my gun but didnt draw. I said to the dog M-f-er if you bite me i'm gonna shoot you. He stopped in his tracks and turned around.
Some dogs are smarter than we give them credit for... he obviously sensed that you meant business. (You didn't run.)
LL