k&r; exercise 1.20 - fix subsequent tabs replacement