Update redis-check-dump.c

Fixes sprintf reading beyond the end of a buffer if a key gets truncated.