mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 01:49:17 +01:00
use internal allocator
This commit is contained in:
parent
79e3dc0948
commit
0f96214202
@ -203,7 +203,7 @@ void fatGetVolumeLabel (const char* name, char *label) {
|
||||
return;
|
||||
|
||||
namelen = strlen(name);
|
||||
buf=(char*)malloc(sizeof(char)*namelen+2);
|
||||
buf=(char*)_FAT_mem_allocate(sizeof(char)*namelen+2);
|
||||
strcpy(buf,name);
|
||||
|
||||
if (name[namelen-1] == '/') {
|
||||
|
Loading…
Reference in New Issue
Block a user