From f1234d60bac9a1e81761288abe555632fb58b6bb Mon Sep 17 00:00:00 2001 From: Andrew Bird Date: Sun, 13 Oct 2024 00:13:06 +0100 Subject: [PATCH] bpb: Convert sz string to 83 for volume name --- kernel/dsk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dsk.c b/kernel/dsk.c index ddc81ca4..a31ea62a 100644 --- a/kernel/dsk.c +++ b/kernel/dsk.c @@ -93,7 +93,7 @@ COUNT writelabelBPB(char drive, const char *name) /* store volume name */ fs = (struct FS_info *)&DiskTransferBuffer[offset]; - memcpy(&fs->volume[0], name, 11); + ConvertNameSZToName83(fs->volume, name); ret = RWzero(pddt, LBA_WRITE); if (ret != 0)