coverity fixes

s/didget/digit/