13 lines
472 B
Diff
13 lines
472 B
Diff
diff -up parted-1.9.0/libparted/labels/vtoc.c.kh1 parted-1.9.0/libparted/labels/vtoc.c
|
|
--- parted-1.9.0/libparted/labels/vtoc.c.kh1 2009-08-28 12:17:26.000000000 +0200
|
|
+++ parted-1.9.0/libparted/labels/vtoc.c 2009-08-28 12:18:03.000000000 +0200
|
|
@@ -263,7 +263,7 @@ vtoc_volume_label_init (volume_label_t *
|
|
PDEBUG
|
|
sprintf(buffer, "%84s", " ");
|
|
vtoc_ebcdic_enc(buffer, buffer, 84);
|
|
- strncpy(vlabel->volkey, buffer, 84);
|
|
+ strncpy(vlabel->volkey, buffer, 4);
|
|
}
|
|
|
|
/*
|