showdict: use endof instead of sizeof

Sometimes, the output showed the truncation mark "…" even
when nothing was truncated.