mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
Remove fs_dev.c changes.
This commit is contained in:
parent
4e8aa07e07
commit
2af22e2822
@ -315,12 +315,7 @@ static int _fsdevMountDevice(const char *name, FsFileSystem fs, fsdev_fsdevice *
|
||||
|
||||
device->fs = fs;
|
||||
memset(device->name, 0, sizeof(device->name));
|
||||
|
||||
size_t devnamelen = strlen(name);
|
||||
if (devnamelen > (sizeof(device->name) - 1)) devnamelen = (sizeof(device->name) - 1); // Truncate the device name if it's too long
|
||||
if (name[devnamelen - 1] == ':') devnamelen--; // Make sure we don't copy a trailing colon if it was provided
|
||||
|
||||
strncpy(device->name, name, devnamelen);
|
||||
strncpy(device->name, name, sizeof(device->name)-1);
|
||||
|
||||
int dev = AddDevice(&device->device);
|
||||
if(dev==-1)
|
||||
|
Loading…
Reference in New Issue
Block a user