mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 18:30:20 +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;
|
||||
|
||||
first = strtol(path, &path, 0);
|
||||
|
||||
if ( (*path != ',') && (*path != 0) )
|
||||
return NULL;
|
||||
|
||||
if (*path == ',')
|
||||
{
|
||||
path++;
|
||||
size = strtol(path, &path, 0);
|
||||
if (*path != 0)
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user