From e8d58acfbfe187e5169056e454ddaba3edda2bb4 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Sat, 26 Nov 2005 08:43:04 +0000 Subject: [PATCH] Correct size part decoding in filename --- libblock/block_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;