Index: cgpt/cmd_add.c |
diff --git a/cgpt/cmd_add.c b/cgpt/cmd_add.c |
index 18a0285e8143fd1ae8c701ed8213c90c0f9c42d9..12ae57c98edd7381229fc0e9b789f826ae7c5840 100644 |
--- a/cgpt/cmd_add.c |
+++ b/cgpt/cmd_add.c |
@@ -45,7 +45,7 @@ int cmd_add(int argc, char *argv[]) { |
int successful = 0; |
int tries = 0; |
int priority = 0; |
- uint64_t raw_value = 0; |
+ uint16_t raw_value = 0; |
int set_begin = 0; |
int set_size = 0; |
int set_type = 0; |
@@ -249,7 +249,7 @@ int cmd_add(int argc, char *argv[]) { |
memcpy(entry->name, buf, sizeof(entry->name)); |
} |
if (set_raw) { |
- entry->attributes = raw_value; |
+ entry->attrs.fields.gpt_att = raw_value; |
} else { |
if (set_successful) |
SetSuccessful(&drive.gpt, PRIMARY, index, successful); |