From 0f47a655558a2b63c626350a0b4697643a6e85fe Mon Sep 17 00:00:00 2001 From: dpryan79 Date: Wed, 8 May 2019 12:28:48 +0200 Subject: [PATCH] Fix #35, bump version to 0.4.3 --- bigWig.h | 2 +- io.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bigWig.h b/bigWig.h index d7450ac..105d5b9 100644 --- a/bigWig.h +++ b/bigWig.h @@ -53,7 +53,7 @@ extern "C" { /*! * The library version number */ -#define LIBBIGWIG_VERSION 0.4.2 +#define LIBBIGWIG_VERSION 0.4.3 /*! * If 1, then this library was compiled with remote file support. diff --git a/io.c b/io.c index 8cd05fc..a82ef3b 100644 --- a/io.c +++ b/io.c @@ -133,7 +133,7 @@ CURLcode urlSeek(URL_t *URL, size_t pos) { #ifndef NOCURL } else { //If the location is covered by the buffer then don't seek! - if(pos < URL->filePos || pos >= URL->filePos+URL->bufSize) { + if(pos < URL->filePos || pos >= URL->filePos+URL->bufLen) { URL->filePos = pos; URL->bufLen = 0; //Otherwise, filePos will get incremented on the next read! URL->bufPos = 0;