Sentinel: Add "dir /tmp" directive in example sentinel.conf.
fixed possible buffer overflow error
Fixed possible buffer overflow bug if RDB file is corrupted.

(Note: commit message modified by @antirez for clarity).