diff options
-rw-r--r-- | examples/ezusb.c | 6 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/examples/ezusb.c b/examples/ezusb.c index 5699a10..278af5d 100644 --- a/examples/ezusb.c +++ b/examples/ezusb.c @@ -436,7 +436,11 @@ static int parse_iic(FILE *image, void *context, uint8_t block_header[4]; int rc; bool external = false; - long file_size, initial_pos = ftell(image); + long file_size, initial_pos; + + initial_pos = ftell(image); + if (initial_pos < 0) + return -1; fseek(image, 0L, SEEK_END); file_size = ftell(image); diff --git a/libusb/version_nano.h b/libusb/version_nano.h index d3d70cf..f919a2f 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10845 +#define LIBUSB_NANO 10846 |