Update entab.c

Fixed calculating stop distance