Revert "exfat: limit backup volume name to 11 characters"
This reverts commit c79381d32a.
This commit is contained in:
@@ -386,8 +386,8 @@ Volume::Mount(const char* deviceName, uint32 flags)
|
|||||||
double size = double((10 * diskSize + divisor - 1) / divisor);
|
double size = double((10 * diskSize + divisor - 1) / divisor);
|
||||||
// %g in the kernel does not support precision...
|
// %g in the kernel does not support precision...
|
||||||
|
|
||||||
snprintf(fName, 11 + 1, "%g %cB ExFAT", size / 10, unit);
|
snprintf(fName, sizeof(fName), "%g %cB ExFAT Volume",
|
||||||
// exfat volume names can only contain 11 characters
|
size / 10, unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user