Remove fs_dev.c changes.

This commit is contained in:
Pablo Curiel 2020-01-01 21:01:40 -04:00 committed by GitHub
parent 4e8aa07e07
commit 2af22e2822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)