diff --git a/libblock/block_open.c b/libblock/block_open.c index 2fb4fd8..27bd55c 100644 --- a/libblock/block_open.c +++ b/libblock/block_open.c @@ -23,12 +23,12 @@ block_FILE *block_open(device_io_t *device, char *path) int first, size; first = strtol(path, &path, 0); - if ( (*path != ',') && (*path != 0) ) return NULL; if (*path == ',') { + path++; size = strtol(path, &path, 0); if (*path != 0) return NULL;