Fixed a case where seeking to multiple ranges could cause a query to
fail is the previous range ended precisely on a container boundary.
(See https://github.com/samtools/htslib/commit/b96a302071ae05c1cf3e58a897d0e7f5d994ac58)

Replaced sscanf with strtol for CRAM index parsing. This avoids avoids
a subtle bug where I was using PRId64 instead of SCNd64 in my sscanf
format string too.  Strtol works out about 15% faster.


git-svn-id: svn://svn.code.sf.net/p/staden/code/io_lib@3763 ba6f2710-ca9f-427c-89d3-5bf716dbc8e1