mirror of
https://github.com/vivier/EMILE.git
synced 2025-03-13 05:33:53 +00:00
Correct size part decoding in filename
This commit is contained in:
parent
6e81f25305
commit
e8d58acfbf
@ -23,12 +23,12 @@ block_FILE *block_open(device_io_t *device, char *path)
|
|||||||
int first, size;
|
int first, size;
|
||||||
|
|
||||||
first = strtol(path, &path, 0);
|
first = strtol(path, &path, 0);
|
||||||
|
|
||||||
if ( (*path != ',') && (*path != 0) )
|
if ( (*path != ',') && (*path != 0) )
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (*path == ',')
|
if (*path == ',')
|
||||||
{
|
{
|
||||||
|
path++;
|
||||||
size = strtol(path, &path, 0);
|
size = strtol(path, &path, 0);
|
||||||
if (*path != 0)
|
if (*path != 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user