mirror of
https://github.com/zlib-ng/minizip-ng
synced 2026-08-25 14:26:08 -04:00
Fixed filename not being removed from path in certain instances.
This commit is contained in:
parent
c78c782f63
commit
b150432588
1 changed files with 4 additions and 0 deletions
4
mz_os.c
4
mz_os.c
|
|
@ -213,6 +213,10 @@ int32_t mz_path_remove_filename(char *path)
|
|||
|
||||
path_ptr -= 1;
|
||||
}
|
||||
|
||||
if (path_ptr == path)
|
||||
*path_ptr = 0;
|
||||
|
||||
return MZ_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue