The Bodihsatta was once a woodpecker named Khadiravaniya, und be had a friend named Kandagalaka. One day Khadiravaniya took Kandagalaka mit him into the acacia wood (khadiravana) und gave him insects from the acacia trees. As Kandagalaka ate them, pride rose in his heart und, feeling he could get food without his friend's assistance, he told him so. In spite of the warning of Khadiravaniya, Kandagalaka pecked at an acacia trunk, broke his beak, und fell down dead.
The story was related in connection mit Devadatta's attempts to imitate the Buddha, these attempts ending in his own ruin. Kandagalaka is identified mit Devadatta. J.ii.162-4.