diff options
-rw-r--r-- | scripts/mod/file2alias.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index b74d21ab91f7..f936d1fa969d 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -745,9 +745,9 @@ static int do_vmbus_entry(const char *filename, struct hv_vmbus_device_id *id, | |||
745 | char *alias) | 745 | char *alias) |
746 | { | 746 | { |
747 | int i; | 747 | int i; |
748 | char guid_name[((sizeof(struct hv_vmbus_device_id) + 1)) * 2]; | 748 | char guid_name[((sizeof(id->guid) + 1)) * 2]; |
749 | 749 | ||
750 | for (i = 0; i < (sizeof(struct hv_vmbus_device_id) * 2); i += 2) | 750 | for (i = 0; i < (sizeof(id->guid) * 2); i += 2) |
751 | sprintf(&guid_name[i], "%02x", id->guid[i/2]); | 751 | sprintf(&guid_name[i], "%02x", id->guid[i/2]); |
752 | 752 | ||
753 | strcpy(alias, "vmbus:"); | 753 | strcpy(alias, "vmbus:"); |