coverity fixes

Good catch, can't remember why this one was set to KEY_SIZE