mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-25 19:36:52 +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;
|
return;
|
||||||
|
|
||||||
namelen = strlen(name);
|
namelen = strlen(name);
|
||||||
buf=(char*)malloc(sizeof(char)*namelen+2);
|
buf=(char*)_FAT_mem_allocate(sizeof(char)*namelen+2);
|
||||||
strcpy(buf,name);
|
strcpy(buf,name);
|
||||||
|
|
||||||
if (name[namelen-1] == '/') {
|
if (name[namelen-1] == '/') {
|
||||||
|
Loading…
Reference in New Issue
Block a user