Fix buffer read-past-end when loading CRAM indices

Force nul termination of the kstr holding the CRAM index so that sscanf doesn't attempt to check beyond the bounds of the string memory.

On correctly formatted indices it has no need to do this (but apparently does), but the fix is necessary anyway in order to be robust on invalid indices.

Fixes samtools/samtools#288