Correct size part decoding in filename

This commit is contained in:
Laurent Vivier 2005-11-26 08:43:04 +00:00
parent 6e81f25305
commit e8d58acfbf

View File

@ -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;