FAT: restore all lowercase labels, the behavior from r1beta4.

Change-Id: If65e2899b841cfb6be68b7f896a0cb199098232d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8530
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Axel Dörfler <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jérôme Duval
2024-11-11 10:11:08 +00:00
committed by Axel Dörfler
parent 4bfc14b6c7
commit 1e3e4210de
@@ -239,7 +239,7 @@ label_to_fat(char* label)
/*! Convert a volume label from the format stored on disk into a normal string.
@param name A character array of length 11 or a C string of size 12.
@post Name is null-teriminated after the last non-space character.
@post Name is null-terminated after the last non-space character, and converted to lower case.
*/
void
label_from_fat(char* name)
@@ -250,6 +250,11 @@ label_from_fat(char* name)
break;
}
name[i + 1] = 0;
for (; i >= 0; i--) {
if (name[i] >= 'A' && name[i] <= 'Z')
name[i] += 'a' - 'A';
}
}