Hundley broke a 2-2 tie in the eighth inning by sending his decisive hit down the leftfield line at Petco Park after Will Venable and Jedd Gyorko had reached base on back-to-back singles with one out.
Dale Thayer (1-3) was credited with the win. Huston Street chalked up his 20th save.
Pregnant Mila Kunis wins 'Best Villain' at MTV Movie Awards
Pistorius testifies he didn't consciously pull trigger when he shot girlfriend